Access violation in __xtpSkinManagerDestructor |
Post Reply |
Author | |
Jerry3
Newbie Joined: 09 July 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 09 July 2009 at 2:59am |
XtremeToolkit Pro MFC V13.0.0
VS2008 SP1 Everything works fine before I add a 3rd ActiveX Control into my project.(http://www.angelfire.com/falcon/babarnazmi/iaxclient/iaxclientocx.htm) It will crash with an access violation exception when the program exiting. The stack trace is: CWnd::SetWindowRgn(HRGN__ * hRgn=0x00000000, int bRedraw=0x00000001) Line 110 + 0x40 bytes C++ CXTPSkinObjectFrame::OnHookDetached(int bAuto=0x00000000) Line 313 C++ CXTPSkinObject::UnattachHook(int bAuto=0x00000000) Line 139 + 0x16 bytes C++ CXTPSkinManager::RemoveAll(int bUnattach=0x00000001) Line 639 C++ CXTPSkinManager::~CXTPSkinManager() Line 387 C++ CXTPSkinManager::`scalar deleting destructor'() + 0x2b bytes C++ CXTPSkinManager::CDestructor::~CDestructor() Line 610 + 0x36 bytes C++ `dynamic atexit destructor for '__xtpSkinManagerDestructor''() + 0x28 bytes C++ doexit(int code=0x00000000, int quick=0x00000000, int retcaller=0x00000000) Line 591 C It seems that there is something wrong in the SkinManager when doing cleaning up, restore the windows procedure , Thanks for any advice. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(1)
|
Hi,
try maually call RemoveAll() in some ExitInstance of your applcation. and maybe LoadSkin(0, 0);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Static variables must be cleared manually when inside an OCX (preferably in ExitInstance). This goes for non-CJ code too.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |