Print Page | Close Window

Assert error in debug when destructing

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=7457
Printed Date: 28 November 2024 at 12:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assert error in debug when destructing
Posted By: dbo7260
Subject: Assert error in debug when destructing
Date 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





Replies:
Posted By: Oleg
Date Posted: 27 June 2007 at 12:46am
Its mean you have some control that was not destroyed. Check what value has m_factoryList.m_pHead.

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


Posted By: dbo7260
Date Posted: 04 July 2007 at 8:06pm
Thank you.  I'll check it out.


Posted By: jwhagen
Date Posted: 12 September 2012 at 12:26pm
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. Confused
 
Thanks!
 
John



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