Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Crash using themes in CXTTabCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash using themes in CXTTabCtrl

 Post Reply Post Reply
Author
Message
Mark Swaisgood View Drop Down
Newbie
Newbie
Avatar

Joined: 21 July 2004
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mark Swaisgood Quote  Post ReplyReply Direct Link To This Post Topic: Crash using themes in CXTTabCtrl
    Posted: 26 September 2006 at 10:54am
Xtreme Toolkit Pro v10.2
 
VS.NET 2003
 
Using CXTTabCtrl in two different views.
Set the themes:

m_tab_ctrl.SetTheme(ThemeManager::Instance().GetThemeStyle());

where ThemeManager returns xtThemeOffice2003, etc.
 
During app use the tabs show up with the appropriate theme. At exit, it crashes in:
 
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);  <<<<<<<<<<< asserts here then crashes
 m_factoryList.RemoveAll();
}
 
Call Stack:
> TyperAnalyzerD.exe!CXTThemeManager::~CXTThemeManager()  Line 317 + 0x1d C++
  TyperAnalyzerD.exe!CXTThemeManager::`scalar deleting destructor'()  + 0x2b C++
  mfc71d.dll!CProcessLocalObject::~CProcessLocalObject()  Line 472 + 0x26 C++
Note that if I only open one of the two views or only set the theme on one of the two views there is no crash.
 
Any help would be appreciated,
 
Mark
 
Back to Top
dijesh.k.a View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2006
Location: India
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote dijesh.k.a Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2006 at 5:12am

hai,

  U can use  CXTPTabControl  instead of  CXTTabCtrl.

 
 
Dijesh.K.A
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.