Print Page | Close Window

Trouble using XTPSkinManager from dll

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=10259
Printed Date: 14 May 2024 at 4:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trouble using XTPSkinManager from dll
Posted By: xhantt
Subject: Trouble using XTPSkinManager from dll
Date 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.





Replies:
Posted By: Oleg
Date Posted: 16 April 2008 at 2:46pm
Try to unload skin on exit with
 
XTPSKinManager()->LoadSkin(NULL, NULL);


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


Posted By: xhantt
Date Posted: 16 April 2008 at 5:55pm
Thank you, that worked perfectly.



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