Print Page | Close Window

Access violation in __xtpSkinManagerDestructor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=14709
Printed Date: 16 June 2024 at 9:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Access violation in __xtpSkinManagerDestructor
Posted By: Jerry3
Subject: Access violation in __xtpSkinManagerDestructor
Date 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 - 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.



Replies:
Posted By: Oleg
Date Posted: 10 July 2009 at 6:26am
Hi,
try maually call RemoveAll() in some ExitInstance of your applcation. and maybe LoadSkin(0, 0);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 10 July 2009 at 9:30am
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/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net