![]() |
Crash using themes in CXTTabCtrl |
Post Reply
|
| Author | |
Mark Swaisgood
Newbie
Joined: 21 July 2004 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Crash using themes in CXTTabCtrlPosted: 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
|
|
![]() |
|
dijesh.k.a
Newbie
Joined: 15 October 2006 Location: India Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 November 2006 at 5:12am |
|
hai, U can use CXTPTabControl instead of CXTTabCtrl. |
|
|
Dijesh.K.A
|
|
![]() |
|
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 |