![]() |
Assert error in debug when destructing |
Post Reply ![]() |
Author | |
dbo7260 ![]() Newbie ![]() ![]() Joined: 26 June 2007 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 26 June 2007 at 3:57pm |
I'm building using the static version (11.1) of the skin library and control library. Our application is somewhat complex manually getting controls from our control library in a separate DLL. The main application is a dialog based app, this is where I load up the skin. The application is metadata driven and the controls are dynamically drawn on the dialog, getting the controls (MFC or XTP) from this separate DLL. It's bombing on this code:
CXTThemeManager::~CXTThemeManager() { POSITION pos = m_mapDefaultFactories.GetStartPosition(); void* pThemeFactoryClass; CXTThemeManagerStyleFactory* pFactory = 0; while (pos) { m_mapDefaultFactories.GetNextAssoc(pos, pThemeFactoryClass, (void *&)pFactory); SAFE_DELETE(pFactory); } ASSERT(m_factoryList.m_pHead == 0); // right here... m_factoryList.RemoveAll(); } Any help would be appreciated. Dave |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Its mean you have some control that was not destroyed. Check what value has m_factoryList.m_pHead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
dbo7260 ![]() Newbie ![]() ![]() Joined: 26 June 2007 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Thank you. I'll check it out.
|
|
![]() |
|
jwhagen ![]() Groupie ![]() ![]() Joined: 09 May 2003 Location: United States Status: Offline Points: 43 |
![]() ![]() ![]() ![]() ![]() |
I have just encountered this problem (Codejock Version 13). I can obtain the value of m_factoryList.m_pHead but don't know what to do next. How do I relate that value to the object that's causing the problem? I guess what I am really asking is how do I look up the value to know what object it's talking about?
Sorry if it's a dumb question. I am self taught and still have lots to learn.
![]() Thanks!
John
|
|
![]() |
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 |