有高手 请教
WinDbg
有高手 请教
xian
2011-01-12, 11:55 上午
FAULTING_IP:
ntdll!DbgBreakPoint+0
7c92120e cc int 3
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 7c92120e (ntdll!DbgBreakPoint)
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 3
Parameter[0]: 00000000
Parameter[1]: 0058d268
Parameter[2]: 0000003b
DEFAULT_BUCKET_ID: STATUS_BREAKPOINT
PROCESS_NAME: CAgt.exe
ERROR_CODE: (NTSTATUS) 0x80000003 - {
EXCEPTION_CODE: (HRESULT) 0x80000003 (2147483651) -
EXCEPTION_PARAMETER1: 00000000
EXCEPTION_PARAMETER2: 0058d268
EXCEPTION_PARAMETER3: 0000003b
FAULTING_THREAD: 00000ba4
PRIMARY_PROBLEM_CLASS: STATUS_BREAKPOINT
BUGCHECK_STR: APPLICATION_FAULT_STATUS_BREAKPOINT
LAST_CONTROL_TRANSFER: from 0047c209 to 7c92120e
STACK_TEXT:
0012768c 0047c209 0012a6cc 0047c428 0012a8c4 ntdll!DbgBreakPoint
00127694 0047c428 0012a8c4 00000000 00000000 CAgt!_CrtDbgBreak+0x9 [dbgrpt.c @ 126]
0012a6cc 00503aee 00000002 005820f0 00000190 CAgt!_CrtDbgReport+0x118 [dbgrpt.c @ 353]
0012a70c 004c3131 005820f0 00000190 0012a8c4 CAgt!AfxAssertFailedLine+0x2e [afxasert.cpp @ 39]
0012a798 77d18734 000f05da 00000046 00000000 CAgt!_AfxActivationWndProc+0x49 [wincore.cpp @ 400]
0012a7c4 77d2bdf1 004c30e8 000f05da 00000046 user32!InternalCallWinProc+0x28
0012a82c 77d28ea0 00000000 004c30e8 000f05da user32!UserCallWinProcCheckWow+0xea
0012a880 77d2bd34 007f9538 00000046 00000000 user32!DispatchClientMessage+0xa3
0012a8a8 7c92e473 0012a8b8 00000030 007f9538 user32!__fnINOUTLPWINDOWPOS+0x27
0012a8e4 77d2b11e 77d3ada0 00030120 0012b150 ntdll!KiUserCallbackDispatcher+0x13
0012a900 77d18734 0003012a 00000110 00030120 user32!NtUserSetFocus+0xc
0012a92c 77d2413c 77d3a016 0003012a 00000110 user32!InternalCallWinProc+0x28
0012a998 77d23b30 00000000 77d3a016 0003012a user32!UserCallDlgProcCheckWow+0xf0
0012a9e0 77d3e599 00000000 00000110 00030120 user32!DefDlgProcWorker+0xa8
0012a9fc 77d18734 0003012a 00000110 00030120 user32!DefDlgProcA+0x22
0012aa28 77d18816 77d3e577 0003012a 00000110 user32!InternalCallWinProc+0x28
0012aa90 77d2a013 00000000 77d3e577 0003012a user32!UserCallWinProcCheckWow+0x150
0012aac0 77d2a998 77d3e577 0003012a 00000110 user32!CallWindowProcAorW+0x98
0012aae0 004c31e0 77d3e577 0003012a 00000110 user32!CallWindowProcA+0x1b
0012ab78 77d18734 0003012a 00000110 00030120 CAgt!_AfxActivationWndProc+0xf8 [wincore.cpp @ 415]
0012aba4 77d18816 004c30e8 0003012a 00000110 user32!InternalCallWinProc+0x28
0012ac0c 77d2927b 00000000 004c30e8 0003012a user32!UserCallWinProcCheckWow+0x150
0012ac48 77d2651a 007a3a88 007e2d08 00030120 user32!SendMessageWorker+0x4a5
0012ad00 77d249b1 00000000 007a3a88 00000000 user32!InternalCreateDialog+0x9df
0012ad34 77d3a956 77d10000 00177b58 00170650 user32!InternalDialogBox+0xa9
0012aff4 77d3a2bc 0012b150 00000000 ffffffff user32!SoftModalMessageBox+0x938
0012b144 77d663fd 0012b150 00000028 00170650 user32!MessageBoxWorker+0x2ba
0012b19c 77d664a2 00170650 00177938 001740a8 user32!MessageBoxTimeoutW+0x7a
0012b1d0 77d50877 00170650 0012b26c 00563cdc user32!MessageBoxTimeoutA+0x9c
0012b1f0 77d5082f 00170650 0012b26c 00563cdc user32!MessageBoxExA+0x1b
0012b20c 0048a987 00170650 0012b26c 00563cdc user32!MessageBoxA+0x45
0012b22c 0047c973 0012b26c 00563cdc 00012012 CAgt!__crtMessageBoxA+0xb7 [crtmbox.c @ 65]
0012c378 0047c666 00000002 005820f0 0012c3a0 CAgt!CrtMessageWindow+0x2d3 [dbgrpt.c @ 520]
0012f3c4 00503aee 00000002 005820f0 00000190 CAgt!_CrtDbgReport+0x356 [dbgrpt.c @ 419]
0012f404 004c3131 005820f0 00000190 0012f4f8 CAgt!AfxAssertFailedLine+0x2e [afxasert.cpp @ 39]
0012f490 77d18734 000f05da 0000001c 00000000 CAgt!_AfxActivationWndProc+0x49 [wincore.cpp @ 400]
0012f4bc 77d18816 004c30e8 000f05da 0000001c user32!InternalCallWinProc+0x28
0012f524 77d28ea0 00000000 004c30e8 000f05da user32!UserCallWinProcCheckWow+0x150
0012f578 77d28eec 007f9538 0000001c 00000000 user32!DispatchClientMessage+0xa3
0012f5a0 7c92e473 0012f5b0 00000018 007f9538 user32!__fnDWORD+0x24
0012f5c4 77d191be 77d2776b 005930a4 00000000 ntdll!KiUserCallbackDispatcher+0x13
0012f5ec 004bdd6a 005930a4 00000000 00000000 user32!NtUserGetMessage+0xc
0012f614 004c861f 0012fec0 0012f6b8 7ffd4000 CAgt!CWinThread::PumpMessage+0x30 [thrdcore.cpp @ 821]
0012f650 004c0510 00000004 0012fec0 0012f6b8 CAgt!CWnd::RunModalLoop+0x202 [wincore.cpp @ 3489]
0012f6b0 00407953 00620073 00680075 7ffd4000 CAgt!CDialog::DoModal+0x188 [dlgcore.cpp @ 539]
0012fef8 004cfd43 00620073 00680075 7ffd4000 CAgt!CCAgtApp::InitInstance+0xb43 [E:\CAgt1_8\CAgt.cpp @ 1076]
0012ff18 0049dc98 00400000 00000000 001423bc CAgt!AfxWinMain+0x83 [winmain.cpp @ 39]
0012ff30 0047ace6 00400000 00000000 001423bc CAgt!WinMain+0x18 [appmodul.cpp @ 30]
0012ffc0 7c817077 00620073 00680075 7ffd4000 CAgt!WinMainCRTStartup+0x126 [crt0.c @ 198]
0012fff0 00000000 0047abc0 00000000 00000000 kernel32!BaseProcessStart+0x23
上面指示的1076行代码
int nResponse = dlg.DoModal();
int nResponse = dlg.DoModal();
Re: 有高手 请教
Forward
2011-01-18, 10:24 上午
朋友,我真的很想知道你遇见了什么问题。
Re: 有高手 请教
格蠹老雷
2011-01-18, 13:02 下午
处理WM_ACTIVATEAPP(1C)消息时出错了,从窗口的属性中取不到oldWndProc...
看一下wincore.cpp的源代码,应该是下面这个断言失败了:
LRESULT CALLBACK
_AfxActivationWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)
{
WNDPROC oldWndProc = (WNDPROC)::GetProp(hWnd, _afxOldWndProc);
ASSERT(oldWndProc != NULL);
...
可能与这个对话框的子类化有关...