Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 13.2 Sporadic crash when switching ribbon tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

13.2 Sporadic crash when switching ribbon tab

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: 13.2 Sporadic crash when switching ribbon tab
    Posted: 29 October 2009 at 4:25pm
Using XTP 13.2. The crash (rarely) happens when I switch tab (which can occur both manually and automatically). It looks like WM_CANCELMODE is the culprit! I'm using Ribbon + SkinManager for my whole application.
 
 
  msvcr90d.dll!_CrtDbgBreak()  Line 89 C
  msvcr90d.dll!_VCrtDbgReportA(int nRptType=2, const char * szFile=0x5fd24430, int nLine=398, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x0012788c)  Line 290 C
  msvcr90d.dll!_CrtDbgReportV(int nRptType=2, const char * szFile=0x5fd24430, int nLine=398, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x0012788c)  Line 241 + 0x1d bytes C
  msvcr90d.dll!_CrtDbgReport(int nRptType=2, const char * szFile=0x5fd24430, int nLine=398, const char * szModule=0x00000000, const char * szFormat=0x00000000, ...)  Line 258 + 0x1d bytes C
  mfc90d.dll!AfxAssertFailedLine(const char * lpszFileName=0x5fd24430, int nLine=398)  Line 25 + 0x14 bytes C++
> mfc90d.dll!AfxWndProc(HWND__ * hWnd=0x00090252, unsigned int nMsg=31, unsigned int wParam=0, long lParam=0)  Line 398 + 0x15 bytes C++
  mfc90d.dll!AfxWndProcBase(HWND__ * hWnd=0x00090252, unsigned int nMsg=31, unsigned int wParam=0, long lParam=0)  Line 441 + 0x15 bytes C++
  user32.dll!7689f8d2()  
  [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] 
  user32.dll!7689f794()  
  user32.dll!7689f73d()  
  user32.dll!768a06f6()  
  user32.dll!768aba01()  
  CoolProgram.exe!CXTPSkinManagerApiHook::OnHookCallWindowProcA(long (HWND__ *, unsigned int, unsigned int, long)* lpPrevWndFunc=0x5fda8390, HWND__ * hWnd=0x00090252, unsigned int Msg=31, unsigned int wParam=0, long lParam=0)  Line 893 + 0x19 bytes C++
  CoolProgram.exe!CXTPHookManager::HookWndProc(HWND__ * hWnd=0x00090252, unsigned int message=31, unsigned int wParam=0, long lParam=0)  Line 267 + 0x1c bytes C++
  user32.dll!7689f8d2()  
  user32.dll!7689f794()  
  user32.dll!7689f73d()  
  user32.dll!768a0817()  
  user32.dll!768a0a65()  
  ntdll.dll!776a99ce()  
  user32.dll!7688cae3()  
  user32.dll!7688bc91()  
  user32.dll!768dccdc()  
  user32.dll!768dd25e()  
  user32.dll!768dd394()  
  user32.dll!768dd43e()  
  user32.dll!768dd5ec()  
  user32.dll!768dd65e()  
  msvcr90d.dll!__crtMessageWindowA(int nRptType=2, const char * szFile=0x010cc1a0, const char * szLine=0x0012a2c0, const char * szModule=0x00000000, const char * szUserMessage=0x001292c0)  Line 363 + 0x16 bytes C
  msvcr90d.dll!_VCrtDbgReportA(int nRptType=2, const char * szFile=0x010cc1a0, int nLine=760, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x0012e354)  Line 420 + 0x28 bytes C
  msvcr90d.dll!_CrtDbgReportV(int nRptType=2, const char * szFile=0x010cc1a0, int nLine=760, const char * szModule=0x00000000, const char * szFormat=0x00000000, char * arglist=0x0012e354)  Line 241 + 0x1d bytes C
  msvcr90d.dll!_CrtDbgReport(int nRptType=2, const char * szFile=0x010cc1a0, int nLine=760, const char * szModule=0x00000000, const char * szFormat=0x00000000, ...)  Line 258 + 0x1d bytes C
  mfc90d.dll!AfxAssertFailedLine(const char * lpszFileName=0x010cc1a0, int nLine=760)  Line 25 + 0x14 bytes C++
  CoolProgram.exe!CXTPDockingPaneKeyboardHook::~CXTPDockingPaneKeyboardHook()  Line 760 + 0x22 bytes C++
  CoolProgram.exe!CXTPDockingPaneKeyboardHook::`scalar deleting destructor'()  + 0x2b bytes C++
  mfc90d.dll!CThreadSlotData::DeleteValues(CThreadData * pData=0x002ccbc0, HINSTANCE__ * hInst=0x00000000)  Line 356 + 0x29 bytes C++
  mfc90d.dll!CThreadSlotData::DeleteValues(HINSTANCE__ * hInst=0x00000000, int bAll=1)  Line 398 C++
  mfc90d.dll!AfxTermLocalData(HINSTANCE__ * hInst=0x00000000, int bAll=1)  Line 496 C++
  mfc90d.dll!DllMain(HINSTANCE__ * hInstance=0x5fd20000, unsigned long dwReason=0, void * __formal=0x00000001)  Line 563 + 0x9 bytes C++
  mfc90d.dll!__DllMainCRTStartup(void * hDllHandle=0x5fd20000, unsigned long dwReason=0, void * lpreserved=0x00000001)  Line 546 + 0x11 bytes C
  mfc90d.dll!_DllMainCRTStartup(void * hDllHandle=0x5fd20000, unsigned long dwReason=0, void * lpreserved=0x00000001)  Line 510 + 0x11 bytes C
  ntdll.dll!7768e1c4()  
  ntdll.dll!7767a8dd()  
  kernel32.dll!75f23b69()  
  nvoglv32.dll!699e2cf7()  
  nvoglv32.dll!699e2c32()  
  nvoglv32.dll!699eb29c()  
  nvoglv32.dll!699e33dd()  
  nvoglv32.dll!695cd9d9()  
  nvoglv32.dll!695c7fde()  
  nvoglv32.dll!6979f8c4()  
  nvoglv32.dll!69798787()  
  nvoglv32.dll!697988c1()  
  nvoglv32.dll!697989e5()  
  nvoglv32.dll!69798b4e()  
  nvoglv32.dll!69591a61()  
  nvoglv32.dll!6978f52a()  
  nvoglv32.dll!6978f54c()  
  opengl32.dll!650edb2d()  
  opengl32.dll!650f80d1()  <--- OpenGL!
  gdi32.dll!763a47fc()  
  3DChartM.ocx!0573e7f4()  
  3DChartM.ocx!0574186e()  
  3DChartM.ocx!057417be()  
  3DChartM.ocx!05741ec2()  <--- inside OCX!
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 4:30pm
Actually, it's reproducible. It worked yesterday!
 
Running Vista Pro 32-bit SP1... and there sure was a huge update from Microsoft yesterday.
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 4:34pm
Disabling hardware acceleration in this OCX seems to "solve" the problem. Turning it off, however, is not an option!
PokerMemento - http://www.pokermemento.com/
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 230
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 5:43pm
I had a similar problem. My 64 bit application refused to start yesterday after the MS update because it couldn't load Xtreme Toolkit. But rebuilding the libraries solved my problem - maybe you need to do the same.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 6:36pm
Aaah! Good catch! I remember there was some "VS hotfix"...
 
Thanks. I'll try that at once!
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 7:02pm
Damn! Doesn't work even after compiling XTP + my application. I end up with "abnormal program termination"... even if I turn the skinmanager off.
 

Second Chance Assertion Failed: File f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\wincore.cpp, Line 398:

CWnd* pWnd = CWnd::FromHandlePermanent(hWnd); <--- returns NULL

Even if I remove the skinning completely, the problem persists!
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 8:15am
Hi,
 
FromHandlePermanent can return NULL. Try run Wizard to rebuild toolkit and be sure you rebuild whole application too.
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2009 at 3:04am

It seems to work now. I guess there were some pending Windows updates that had to be installed properly.

Very strange though!
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.