Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - App crashes while closing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

App crashes while closing

 Post Reply Post Reply
Author
Message
SunMarc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 October 2006
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote SunMarc Quote  Post ReplyReply Direct Link To This Post Topic: App crashes while closing
    Posted: 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...




Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
SunMarc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 October 2006
Location: France
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote SunMarc Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2006 at 6:02am
Thank you for your quick reply!

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.063 seconds.