![]() |
Crash on Application Shutdown |
Post Reply ![]() |
Author | |
garbh ![]() Newbie ![]() Joined: 16 July 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 16 July 2008 at 5:37am |
HI
When I close my application I get a crash.
It seems to involve CXTPOffice2007FrameHook::EnableOffice2007Frame(CXTPCommandBars* pCommandBars)
Here is my debug info
NTDLL! 77f9193c()
_CrtDbgReport(int 2, const char * 0x5f4d0cf0 THIS_FILE, int 374, const char * 0x00000000, const char * 0x00000000) line 353 AfxAssertFailedLine(const char * 0x5f4d0cf0 THIS_FILE, int 374) line 39 + 20 bytes AfxWndProc(HWND__ * 0x00560d98, unsigned int 874, unsigned int 0, long 0) line 374 + 21 bytes AfxWndProcBase(HWND__ * 0x00560d98, unsigned int 874, unsigned int 0, long 0) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() SubWndProc(HWND__ * 0x00560d98, unsigned int 874, unsigned int 0, long 0) line 393 USER32! 77e3a454() USER32! 77e14605() USER32! 77e1a7f2() USER32! 77e44327() USER32! 77e34139() USER32! 77e344d5() USER32! 77e339cb() USER32! 77e34260() USER32! 77e333fc() __crtMessageBoxA(const char * 0x0012a5a8, const char * 0x102579a0 `string', unsigned int 73746) line 65 CrtMessageWindow(int 2, const char * 0x5f4d0cf0 THIS_FILE, const char * 0x0012b6dc, const char * 0x00000000, const char * 0x0012d700) line 520 + 22 bytes _CrtDbgReport(int 2, const char * 0x5f4d0cf0 THIS_FILE, int 374, const char * 0x00000000, const char * 0x00000000) line 419 + 76 bytes AfxAssertFailedLine(const char * 0x5f4d0cf0 THIS_FILE, int 374) line 39 + 20 bytes AfxWndProc(HWND__ * 0x00560d98, unsigned int 49537, unsigned int 0, long 0) line 374 + 21 bytes AfxWndProcBase(HWND__ * 0x00560d98, unsigned int 49537, unsigned int 0, long 0) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() SubWndProc(HWND__ * 0x00560d98, unsigned int 49537, unsigned int 0, long 0) line 393 USER32! 77e3a454() USER32! 77e16382() USER32! 77e168c4() CXTPOffice2007FrameHook::EnableOffice2007Frame(CXTPCommandBars * 0x00000000 {CXTPCommandBars}) line 333 + 26 bytes CXTPOffice2007FrameHook::~CXTPOffice2007FrameHook() line 267 CXTPOffice2007FrameHook::`vector deleting destructor'(unsigned int 1) + 103 bytes CXTPRibbonBar::OnRemoved() line 294 + 50 bytes CXTPCommandBars::RemoveAll() line 1832 + 16 bytes CXTPCommandBars::~CXTPCommandBars() line 279 CXTPCommandBars::`vector deleting destructor'(unsigned int 1) + 106 bytes CCmdTarget::OnFinalRelease() line 519 + 31 bytes CCmdTarget::InternalRelease() line 223 CXTPCommandBarsSiteBase<CMDIFrameWnd>::~CXTPCommandBarsSiteBase<CMDIFrameWnd>() line 63 CXTPFrameWndBase<CMDIFrameWnd>::~CXTPFrameWndBase<CMDIFrameWnd>() line 224 + 8 bytes CXTPMDIFrameWnd::~CXTPMDIFrameWnd() + 37 bytes CMainFrame::~CMainFrame() line 361 + 612 bytes CMainFrame::`scalar deleting destructor'(unsigned int 1) + 15 bytes CFrameWnd::PostNcDestroy() line 214 + 31 bytes CWnd::OnNcDestroy() line 854 CWnd::OnWndMsg(unsigned int 130, unsigned int 0, long 0, long * 0x0012eeb8) line 1836 CXTPCommandBarsSiteBase<CMDIFrameWnd>::OnWndMsg(unsigned int 130, unsigned int 0, long 0, long * 0x0012eeb8) line 192 CWnd::WindowProc(unsigned int 130, unsigned int 0, long 0) line 1596 + 30 bytes CMainFrame::WindowProc(unsigned int 130, unsigned int 0, long 0) line 5428 AfxCallWndProc(CWnd * 0x04f10068 {VCMDIFrameWnd::?$CXTPCommandBarsSiteBase hWnd=???}, HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 215 + 26 bytes AfxWndProc(HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 379 AfxWndProcBase(HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 220 + 21 bytes USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() SubWndProc(HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 393 USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() CXTPHookManager::HookWndProc(HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 233 + 28 bytes USER32! 77e3a454() USER32! 77e16b41() USER32! 77e16b64() SubFrameWndProc(HWND__ * 0x00560d98, unsigned int 130, unsigned int 0, long 0) line 134 USER32! 77e3a454() USER32! 77e14750() USER32! 77e155b0() NTDLL! 77f91baf() CMainFrame::DestroyWindow() line 2087 CFrameWnd::OnClose() line 852 CMainFrame::OnClose() line 2027 CWnd::OnWndMsg(unsigned int 16, unsigned int 0, long 0, long * 0x0012f478) line 1836 CXTPCommandBarsSiteBase<CMDIFrameWnd>::OnWndMsg(unsigned int 16, unsigned int 0, long 0, long * 0x0012f478) line 192 CWnd::WindowProc(unsigned int 16, unsigned int 0, long 0) line 1596 + 30 bytes CMainFrame::WindowProc(unsigned int 16, unsigned int 0, long 0) line 5428 Any ideas.
Thanks
Garbh
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, seems some conflict with another control that hook MainFrame. try add
pRibbonbar->EnableFrameTheme(FALSE); in some OnDestroy method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
garbh ![]() Newbie ![]() Joined: 16 July 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Superb. That worked.
Added it to CMainFrame::OnDestroy().
Thanks for your help.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |