[solved] 13.3.0 CRITICAL bug! |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 March 2010 at 5:27pm |
Windows 7 x64, VS 2008 SP1, XTP 13.3.0 statically linked. Skin active.
Pressed F1 in my application to view help. Then quit without closing the help. BOOM! (It seems to crash on different locations between the runs.)
user32.dll!76ee3610()
[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] user32.dll!76ee3610() hhctrl.ocx!719bfea4() hhctrl.ocx!719ce7f9() hhctrl.ocx!719ced01() user32.dll!76ed6238() user32.dll!76ed68ea() user32.dll!76ed6899() user32.dll!76ed723b() user32.dll!76ed6ea9() user32.dll!76ed6ea9() hhctrl.ocx!719cecd6() user32.dll!76ed6238() user32.dll!76ed6238() user32.dll!76ed68ea() user32.dll!76ed6899() user32.dll!76ed7177() user32.dll!76ed6ea9() user32.dll!76eda484() user32.dll!76eda4dd() user32.dll!76eda4dd() hhctrl.ocx!719d0acd() hhctrl.ocx!719837e8() msctf.dll!75be41b5() user32.dll!76ed6238() user32.dll!76ed6941() user32.dll!76edcd1a() user32.dll!76edcd81() user32.dll!76edd6d1() user32.dll!76ee316a() user32.dll!76ed9b10() user32.dll!76f04595() user32.dll!76edd382() user32.dll!76ed6ea9() user32.dll!76ed6ec0() > Application.exe!CMap<HWND__ *,HWND__ *,CXTPSkinObject *,CXTPSkinObject *>::GetAssocAt(HWND__ * key=0xcccccccc, unsigned int & nHashBucket=, unsigned int & nHashValue=) Line 1542 + 0x9 bytes C++ cccccccc() user32.dll!76ee0243() user32.dll!76efeec0() hhctrl.ocx!7199469e() hhctrl.ocx!7199bb19() Application.exe!CXTPSkinManagerApiHook::ThreadProcHook(void * lpThreadData=0x04af3f80) Line 1052 + 0x9 bytes C++ kernel32.dll!75753677() ntdll.dll!776a9d72() ntdll.dll!776a9d45() |
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Sorry, can't reproduce it.
Maybe try manually Close it with something like
HWND WINAPI AfxHtmlHelp(HWND hWnd, LPCTSTR szHelpFilePath, UINT nCmd, DWORD_PTR dwData);void CMainFrame::OnDestroy(){ CXTPMDIFrameWnd::OnDestroy(); AfxHtmlHelp(0, 0, HH_CLOSE_ALL, 0);} |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Well, I know you changed/removed a critical section that caused the application to hang when exiting with an html help window visible. So the bug is real.
Perhaps it only occurs in Classic mode? I'll see if I can find a pattern later. I'll also try your solution, but even if it works there is most certainly a scary bug in the skin manager :(
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Hmm... please note that I have all CJ skins in a resource-only DLL. I load it in InitInstance and unload it in ExitInstance:
FreeLibrary(s_hSkinModule);
return CWinApp::ExitInstance();
}
Since the exception comes after unloading of the DLL, I suspected that code block was the culprit. Placing the following code above the FreeLibrary call did the trick:
XTPSkinManager()->RemoveAll();
Now, is that really necessary?!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You free it before all controls destroy self. so you can try move it to destructor or indeed manually clear SkinManager.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |