![]() |
App crashes while closing |
Post Reply
|
| Author | |
SunMarc
Newbie
Joined: 19 October 2006 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: App crashes while closingPosted: 25 October 2006 at 5:25am |
|
Hello,
I'm using XTP in a DLL and my App crashes while closing in CXTPWinThemeWrapper line 106 : void CXTPWinThemeWrapper::CloseThemeData() { if (m_hTheme && !m_bDllDetached) { TRY_POINTER_CALL(CloseThemeData) POINTER_CALL(m_hTheme); <== here CATCH_POINTER_CALL() } m_hTheme = NULL; } My call stack : > EffectManager.dll!CXTPWinThemeWrapper::CloseThemeData() Ligne 106 + 0xc octets C++ EffectManager.dll!CXTPWinThemeWrapper::~CXTPWinThemeWrapper() Ligne 82 C++ EffectManager.dll!CXTButtonTheme::~CXTButtonTheme() Ligne 55 + 0xb octets C++ EffectManager.dll!CXTButtonTheme::`scalar deleting destructor'() + 0x2b octets C++ EffectManager.dll!CXTThemeManagerStyleFactory::~CXTThemeManagerStyleFactory() Ligne 126 + 0x40 octets C++ EffectManager.dll!CXTButtonThemeFactory::~CXTButtonThemeFactory() + 0x2b octets C++ EffectManager.dll!CXTButtonThemeFactory::`scalar deleting destructor'() + 0x2b octets C++ EffectManager.dll!CXTThemeManager::~CXTThemeManager() Ligne 314 + 0x3b octets C++ EffectManager.dll!CXTThemeManager::`scalar deleting destructor'() + 0x2b octets C++ EffectManager.dll!CProcessLocalObject::~CProcessLocalObject() Ligne 477 + 0x28 octets C++ EffectManager.dll!CProcessLocal<CXTThemeManager>::~CProcessLocal<CXTThemeManager>() + 0x2b octets C++ EffectManager.dll!`dynamic atexit destructor for 'CXTThemeManager::m_sThemeManager''() + 0x28 octets C++ EffectManager.dll!doexit(int code=0, int quick=0, int retcaller=1) Ligne 553 C EffectManager.dll!_cexit() Ligne 413 + 0xb octets C EffectManager.dll!_CRT_INIT(void * hDllHandle=0x10000000, unsigned long dwReason=0, void * lpreserved=0x00000001) Ligne 215 C EffectManager.dll!__DllMainCRTStartup(void * hDllHandle=0x10000000, unsigned long dwReason=0, void * lpreserved=0x00000001) Ligne 387 + 0x11 octets C EffectManager.dll!_DllMainCRTStartup(void * hDllHandle=0x10000000, unsigned long dwReason=0, void * lpreserved=0x00000001) Ligne 328 + 0x11 octets C Please help... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2006 at 6:00am |
|
Hello,
See Workspace/ToolkitPro/ToolkitPro.cpp. add for your dll
if (dwReason == DLL_PROCESS_DETACH)
CXTPWinThemeWrapper::m_bDllDetached = TRUE;
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
SunMarc
Newbie
Joined: 19 October 2006 Location: France Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 October 2006 at 6:02am |
|
Thank you for your quick reply!
![]() |
|
![]() |
|
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 |