Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Trouble using XTPSkinManager from dll
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble using XTPSkinManager from dll

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


Joined: 16 April 2008
Location: Argentina
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote xhantt Quote  Post ReplyReply Direct Link To This Post Topic: Trouble using XTPSkinManager from dll
    Posted: 16 April 2008 at 12:17pm
I'm using XTPSkinManager in a dll that is loaded by an external application as a plugin.

When this application is closing it crash with a stack overflow

Calls to these two methods are filling the stack
CXTPSkinManagerApiHook::OnHookGetProcAddress
CXTPSkinManagerApiHook::GetProcAddressWindows


But if I call the XTPSkinManager destructur when a shutdown event is called
delete XTPSkinManager();

the application seem to close without crash.

But I'm not sure if this is the correct solution. Any help is appreciated.


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: 16 April 2008 at 2:46pm
Try to unload skin on exit with
 
XTPSKinManager()->LoadSkin(NULL, NULL);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
xhantt View Drop Down
Newbie
Newbie


Joined: 16 April 2008
Location: Argentina
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote xhantt Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2008 at 5:55pm
Thank you, that worked perfectly.
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.156 seconds.