Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Access violation in __xtpSkinManagerDestructor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Access violation in __xtpSkinManagerDestructor

 Post Reply Post Reply
Author
Message
Jerry3 View Drop Down
Newbie
Newbie


Joined: 09 July 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jerry3 Quote  Post ReplyReply Direct Link To This Post Topic: Access violation in __xtpSkinManagerDestructor
    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.
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 (1) Thanks(1)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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/
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.188 seconds.