Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printer DC Pin
_AnsHUMAN_ 2-Apr-08 1:14
_AnsHUMAN_ 2-Apr-08 1:14 
GeneralRe: Printer DC Pin
Developer6112-Apr-08 1:28
Developer6112-Apr-08 1:28 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:51
Rajkumar R2-Apr-08 1:51 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:19
Rajkumar R2-Apr-08 1:19 
GeneralRe: Printer DC Pin
Krishnakumartg3-Apr-08 21:37
Krishnakumartg3-Apr-08 21:37 
GeneralRe: Printer DC Pin
Hamid_RT7-Apr-08 3:54
Hamid_RT7-Apr-08 3:54 
QuestionHow to get focus to property sheet in windows programming(win32) Pin
Swty2-Apr-08 0:15
Swty2-Apr-08 0:15 
GeneralApplication is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 0:11
RamaraoPV2-Apr-08 0:11 
Hi,
InitThunk((TMFP) &CExtBox::HookProc, this);
m_hHook = SetWindowsHookEx(WH_CBT, (HOOKPROC) GetThunk(), NULL,GetCurrentThreadId());
ASSERT(m_hHook);
nRes = MessageBoxIndirect(&mp);
if(m_hHook)
UnhookWindowsHookEx(m_hHook);

This is the code part i am using and it was crashing when it calls MessageBoxIndirect().

This code was running from a long time now in fresh version of release this is giving problem. If i use MessageBox( ) then it is working but the function that i am calling is used in somany places so i cannot avoid it.

It is giving the following Application error
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 3/13/2008
Time: 7:14:39 AM
User: N/A
Computer: SILT06-FERG
Description:
Faulting application Acp.exe, version 5.2.1002.21, faulting module unknown, version 0.0.0.0, fault address 0x01f5f968.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 41 63 70 ure Acp
0018: 2e 65 78 65 20 35 2e 32 .exe 5.2
0020: 2e 31 30 30 32 2e 32 31 .1002.21
0028: 20 69 6e 20 75 6e 6b 6e in unkn
0030: 6f 77 6e 20 30 2e 30 2e own 0.0.
0038: 30 2e 30 20 61 74 20 6f 0.0 at o
0040: 66 66 73 65 74 20 30 31 ffset 01
0048: 66 35 66 39 36 38 f5f968

I do not know how to check the callstack so please suggest me, now what can i do? This is a customer issue i need a solution badly please help me.


Yes everything is fine it was working from a long time and recently it is causing this problem and only with some systems.

So i dont think it is the problem with coding, it might be the problem with PC because it varies from PC to PC.

Thanks & Regards,
Ramarao.
QuestionRe: Application is crashing when trying to display messagebox Pin
CPallini2-Apr-08 1:51
mveCPallini2-Apr-08 1:51 
QuestionRe: Application is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 2:10
RamaraoPV2-Apr-08 2:10 
GeneralRe: Application is crashing when trying to display messagebox Pin
Cedric Moonen2-Apr-08 2:21
Cedric Moonen2-Apr-08 2:21 
GeneralRe: Application is crashing when trying to display messagebox Pin
Maximilien2-Apr-08 2:55
Maximilien2-Apr-08 2:55 
QuestionRe: Application is crashing when trying to display messagebox Pin
David Crow2-Apr-08 3:40
David Crow2-Apr-08 3:40 
GeneralHooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 0:03
maszup2-Apr-08 0:03 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 2-Apr-08 5:04
professional Randor 2-Apr-08 5:04 
GeneralSwitch Pin
john56321-Apr-08 23:43
john56321-Apr-08 23:43 
GeneralRe: Switch Pin
Cedric Moonen1-Apr-08 23:47
Cedric Moonen1-Apr-08 23:47 
GeneralRe: Switch Pin
Mark Salsbery2-Apr-08 6:18
Mark Salsbery2-Apr-08 6:18 
GeneralRe: Switch Pin
Hamid_RT7-Apr-08 3:52
Hamid_RT7-Apr-08 3:52 
QuestionThread Pin
Member 34205091-Apr-08 23:37
Member 34205091-Apr-08 23:37 
GeneralRe: Thread Pin
Cedric Moonen1-Apr-08 23:41
Cedric Moonen1-Apr-08 23:41 
GeneralRe: Thread Pin
Maxwell Chen1-Apr-08 23:50
Maxwell Chen1-Apr-08 23:50 
GeneralRe: Thread Pin
Cedric Moonen1-Apr-08 23:59
Cedric Moonen1-Apr-08 23:59 
GeneralRe: Thread Pin
toxcct2-Apr-08 0:05
toxcct2-Apr-08 0:05 
QuestionRe: Thread Pin
Member 34205092-Apr-08 2:21
Member 34205092-Apr-08 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.