Application exception in CMdiFrameWnd::OnUpdateFrameTitle
- From: mshaw@xxxxxxxxxxxxxxxxx
- Date: 4 Apr 2007 04:14:45 -0700
Hi,
We have developed an MDI application, and recently made changes to it
to: close an existing document and display a new one. This is crashing
on a customer's PC, but despite extensive testing in the lab we have
been unable to reproduce the crash.
The release exe was compiled with VisualStudio6 and with the debug
option of "program database" to generate a symbol pdb file. The
customer has kindly sent us a 6Mb DrWatson crash dump file which we
have analyzed. The problem appears to come from MFC42!
CMDIFrameWnd::OnUpdateFrameTitle+0x74
I attach the Windbg analysis results (below) in the hope this helps.
The question is, why is this happening, and what could be causing
this?
Any ideas, anyone?
many thanks,
Mark.
0:000> !analyze -v
*******************************************************************************
*
*
* Exception
Analysis *
*
*
*******************************************************************************
*************************************************************************
***
***
***
***
*** Your debugger is not using the correct symbols
***
***
***
*** In order for this command to work properly, your symbol path
***
*** must point to .pdb files that have full type information.
***
***
***
*** Certain .pdb files (such as the public OS symbols) do not
***
*** contain the required information. Contact the group that
***
*** provided you with these symbols if you need this command to
***
*** work.
***
***
***
*** Type referenced: ntdll!_PEB
***
***
***
*************************************************************************
DBGHELP: DfrView is not source indexed
DBGHELP: C:\symbols\ossymbols\USER32.dll\4060EF9C65000\USER32.dll - OK
DBGHELP: C:\symbols\ossymbols\ntdll.dll\4060EF9B7d000\ntdll.dll - OK
SYMSRV: C:\symbols\ossymbols\MSVCRT.dll\3BAA653846000\MSVCRT.dll not
found
SYMSRV: http://msdl.microsoft.com/download/symbols/MSVCRT.dll/3BAA653846000/MSVCRT.dll
not found
SYMSRV: C:\symbols\productsymbols\MSVCRT.dll\3BAA653846000\MSVCRT.dll
not found
DBGHELP: C:\WINDOWS\system32\MSVCRT.dll - mismatched
FAULTING_IP:
+3
00000003 ?? ???
EXCEPTION_RECORD: ffffffff -- (.exr ffffffffffffffff)
ExceptionAddress: 00000003
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 00000003
Attempt to read from address 00000003
FAULTING_THREAD: 000005f4
DEFAULT_BUCKET_ID: BAD_IP
PROCESS_NAME: DfrView.exe
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx"
referenced memory at "0x%08lx". The memory could not be "%s".
READ_ADDRESS: 00000003
BUGCHECK_STR: ACCESS_VIOLATION
LAST_CONTROL_TRANSFER: from 6c380f1a to 00000003
FAILED_INSTRUCTION_ADDRESS:
+3
00000003 ?? ???
STACK_TEXT:
WARNING: Frame IP not in any known module. Following frames may be
wrong.
0012e7a0 6c380f1a 00d9db90 00d9db90 6c382ca5 0x3
0012e7c8 6c382ccc 00000001 025103d6 6c37206f MFC42!
CMDIFrameWnd::OnUpdateFrameTitle+0x74
0012e7d4 6c37206f 00000000 000003d6 00000251 MFC42!CMDIChildWnd::OnSize
+0x27
0012e858 6c371cea 00000005 00000000 6c413df0 MFC42!CWnd::OnWndMsg
+0x452
0012e878 6c371c73 00000005 00000000 025103d6 MFC42!CWnd::WindowProc
+0x22
0012e8d8 6c371bfb 00000000 0032030c 00000005 MFC42!AfxCallWndProc+0x90
0012e8f4 6c371bba 0032030c 00000005 00000000 MFC42!AfxWndProc+0x2b
0012e920 77e11ef0 0032030c 00000005 00000000 MFC42!AfxWndProcBase+0x39
0012e940 77e13869 6c371b81 0032030c 00000005 USER32!UserCallWinProc
+0x18
0012e95c 77e138ab 0053beb8 00000005 00000000 USER32!
DispatchClientMessage+0x4b
0012e984 77f9ff57 0012e994 00000018 0053beb8 USER32!__fnDWORD+0x22
0012e9a8 77e1372b 0032030c 00000005 00000000 ntdll!
KiUserCallbackDispatcher+0x13
0012e9e0 77e12fd8 0053beb8 00000005 00000000 USER32!SendMessageWorker
+0x3a5
0012ea24 77e25be5 0032030c 00000047 00000000 USER32!DefWindowProcWorker
+0x376
0012ea50 77e25d0b 0032030c 00000047 00000000 USER32!
DefMDIChildProcWorker+0x291
0012ea68 6c380e5c 0032030c 00000047 00000000 USER32!DefMDIChildProcA
+0x17
0012ea7c 6c371d01 00000047 00000000 0012ebc0 MFC42!
CMDIChildWnd::DefWindowProcA+0x15
0012ea98 6c371c73 00000047 00000000 0012ebc0 MFC42!CWnd::WindowProc
+0x39
0012eaf8 6c371bfb 00000000 0032030c 00000047 MFC42!AfxCallWndProc+0x90
0012eb14 6c371bba 0032030c 00000047 00000000 MFC42!AfxWndProc+0x2b
0012eb40 77e11ef0 0032030c 00000047 00000000 MFC42!AfxWndProcBase+0x39
0012eb60 77e13869 6c371b81 0032030c 00000047 USER32!UserCallWinProc
+0x18
0012eb7c 77e166e4 0053beb8 00000047 00000000 USER32!
DispatchClientMessage+0x4b
0012eba4 77f9ff57 0012ebb4 00000030 0053beb8 USER32!__fnINLPWINDOWPOS
+0x23
0012ebe0 6c37860b 0032030c 00000000 00000000 ntdll!
KiUserCallbackDispatcher+0x13
0012ec04 6c37c423 0032030c ffffffec 00000200 MFC42!_AfxModifyStyle
+0x48
0012ec1c 6c37c408 0032030c 00000200 00000000 MFC42!CWnd::ModifyStyleEx
+0x17
0012ec34 6c3860f7 00000200 00000000 00000020 MFC42!CWnd::ModifyStyleEx
+0x30
0012ec48 6c371f1b 0012ee30 00d9dc58 00d9dc58 MFC42!
CSplitterWnd::OnNcCreate+0x2b
0012ecc4 6c371cea 00000081 00000000 6c40c7e0 MFC42!CWnd::OnWndMsg
+0x2ee
0012ece4 6c371c73 00000081 00000000 0012ee30 MFC42!CWnd::WindowProc
+0x22
0012ed44 6c371bfb 00000000 009902cc 00000081 MFC42!AfxCallWndProc+0x90
0012ed60 6c371bba 009902cc 00000081 00000000 MFC42!AfxWndProc+0x2b
0012ed8c 77e11ef0 009902cc 00000081 00000000 MFC42!AfxWndProcBase+0x39
0012edac 77e13869 6c371b81 009902cc 00000081 USER32!UserCallWinProc
+0x18
0012edc8 77e14947 0053bf58 00000081 00000000 USER32!
DispatchClientMessage+0x4b
0012edf8 77f9ff57 0012ee08 00000074 00000074 USER32!
__fnINLPCREATESTRUCT+0x8a
0012ee78 77e189b3 80000000 0012eefc 00000000 ntdll!
KiUserCallbackDispatcher+0x13
0012ef24 77e18b46 80000000 6c40fc8c 00000000 USER32!_CreateWindowEx
+0x1d7
0012ef60 6c37ddcc 00000000 6c40fc8c 00000000 USER32!CreateWindowExA
+0x2e
0012efd0 6c386021 00000000 6c40fc8c 00000000 MFC42!CWnd::CreateEx+0xa4
0012f028 6c386d88 00d9db90 00000000 00000000 MFC42!
CSplitterWnd::CreateCommon+0x55
0012f044 00415bf1 00d9db90 00000001 00000002 MFC42!
CSplitterWnd::CreateStatic+0x29
0012f068 6c37c3ba 0012f278 0012f5d4 00d9db90 DfrView!
CChildFrame::OnCreateClient+0x21 [C:\QUA0573\QUA0573\Current\Software
\Source Code\src\DFRVIEW\ChildFrm.cpp @ 60]
0012f078 6c382bff 0012f278 0012f5d4 00415d7d MFC42!
CFrameWnd::OnCreateHelper+0x1f
0012f084 00415d7d 0012f278 0012f278 6c371f1b MFC42!
CMDIChildWnd::OnCreate+0xf
0012f090 6c371f1b 0012f278 00d9db90 00d9db90 DfrView!
CChildFrame::OnCreate+0xd [C:\QUA0573\QUA0573\Current\Software\Source
Code\src\DFRVIEW\ChildFrm.cpp @ 141]
0012f10c 6c371cea 00000001 00000000 0046b250 MFC42!CWnd::OnWndMsg
+0x2ee
0012f12c 6c371c73 00000001 00000000 0012f278 MFC42!CWnd::WindowProc
+0x22
0012f18c 6c371bfb 00000000 0032030c 00000001 MFC42!AfxCallWndProc+0x90
0012f1a8 6c371bba 0032030c 00000001 00000000 MFC42!AfxWndProc+0x2b
0012f1d4 77e11ef0 0032030c 00000001 00000000 MFC42!AfxWndProcBase+0x39
0012f1f4 77e13869 6c371b81 0032030c 00000001 USER32!UserCallWinProc
+0x18
0012f210 77e14947 0053beb8 00000001 00000000 USER32!
DispatchClientMessage+0x4b
0012f240 77f9ff57 0012f250 0000008c 0000008c USER32!
__fnINLPCREATESTRUCT+0x8a
0012f2d8 77e189b3 80000040 0012f35c 0012f370 ntdll!
KiUserCallbackDispatcher+0x13
0012f384 77e18b46 80000040 00135d60 000b04f9 USER32!_CreateWindowEx
+0x1d7
0012f3c0 77e25a1a 00000040 00135d60 6c441c58 USER32!CreateWindowExA
+0x2e
0012f418 77e4f1fb 0056cef8 00000220 00000000 USER32!
MDIClientWndProcWorker+0x50c
0012f448 77f9ff57 0012f458 00000058 00000058 USER32!
__fnINLPMDICREATESTRUCT+0x36
0012f4ac 77e1372b 002e03d2 00000220 00000000 ntdll!
KiUserCallbackDispatcher+0x13
0012f4e4 77e16015 0056cef8 00000220 00000000 USER32!SendMessageWorker
+0x3a5
0012f504 6c382b93 002e03d2 00000220 00000000 USER32!SendMessageA+0x8c
0012f57c 6c382a6f 00135d60 6c441c58 40cf8000 MFC42!CMDIChildWnd::Create
+0xea
0012f5b4 6c37beda 6c441c58 0046b3e0 00000000 MFC42!
CMDIChildWnd::LoadFrame+0x99
0012f5e8 0044e9bf 00cdec18 00000000 002fb4fc MFC42!
CDocTemplate::CreateNewFrame+0x5d
0012f618 00424fe5 00000001 00000000 002fb118 DfrView!
COleworker::AddOpenFile+0xaf [C:\QUA0573\QUA0573\Current\Software
\Source Code\src\DFRVIEW\Olework.cpp @ 274]
0012f680 6c3723d8 0046ba18 00000111 0012f6c0 DfrView!
CDfrViewDoc::OnNewnext+0xd5 [C:\QUA0573\QUA0573\Current\Software
\Source Code\src\DFRVIEW\DfrDoc.cpp @ 5682]
0012f690 6c3722ae 00cdec18 000080c7 00000000 MFC42!_AfxDispatchCmdMsg
+0x7e
0012f6c0 6c372c99 000080c7 00000000 00000000 MFC42!CCmdTarget::OnCmdMsg
+0x104
0012f6dc 6c372c66 000080c7 00000000 00000000 MFC42!CDocument::OnCmdMsg
+0x17
0012f714 6c372ba2 000080c7 00000000 00000000 MFC42!CView::OnCmdMsg
+0x62
0012f74c 6c372976 000080c7 00000000 00000000 MFC42!CFrameWnd::OnCmdMsg
+0x4c
0012f79c 6c3729d7 00000000 003a0332 00000001 MFC42!CWnd::OnCommand
+0x51
0012f7b4 00416422 000080c7 003a0332 00d9db90 MFC42!CFrameWnd::OnCommand
+0x71
FOLLOWUP_IP:
MFC42!CMDIFrameWnd::OnUpdateFrameTitle+74
6c380f1a 3bc3 cmp eax,ebx
SYMBOL_STACK_INDEX: 1
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: MFC42
IMAGE_NAME: MFC42.DLL
DEBUG_FLR_IMAGE_TIMESTAMP: 384399dc
SYMBOL_NAME: MFC42!CMDIFrameWnd::OnUpdateFrameTitle+74
STACK_COMMAND: ~0s ; kb
FAILURE_BUCKET_ID: ACCESS_VIOLATION_BAD_IP_MFC42!
CMDIFrameWnd::OnUpdateFrameTitle+74
BUCKET_ID: ACCESS_VIOLATION_BAD_IP_MFC42!
CMDIFrameWnd::OnUpdateFrameTitle+74
Followup: MachineOwner
---------
.
- Follow-Ups:
- Re: Application exception in CMdiFrameWnd::OnUpdateFrameTitle
- From: Joseph M . Newcomer
- Re: Application exception in CMdiFrameWnd::OnUpdateFrameTitle
- From: Ajay Kalra
- Re: Application exception in CMdiFrameWnd::OnUpdateFrameTitle
- Prev by Date: Re: Customizing the Title bar of a Dialog box in MFC
- Next by Date: Re: CListCtrl unicode doesn't display korean characters correctly
- Previous by thread: XP themed controls, how to disable them for a library ?
- Next by thread: Re: Application exception in CMdiFrameWnd::OnUpdateFrameTitle
- Index(es):
Relevant Pages
|