Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Assert error in debug when destructing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assert error in debug when destructing

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

Joined: 26 June 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbo7260 Quote  Post ReplyReply Direct Link To This Post Topic: Assert error in debug when destructing
    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


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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

Joined: 26 June 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbo7260 Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2007 at 8:06pm
Thank you.  I'll check it out.
Back to Top
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.