<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Crash using themes in CXTTabCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Crash using themes in CXTTabCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 13:46:03 +0000</pubDate>
  <lastBuildDate>Mon, 13 Nov 2006 05:12:58 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5151</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Crash using themes in CXTTabCtrl : hai, U can use CXTPTabControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5151&amp;PID=17253&amp;title=crash-using-themes-in-cxttabctrl#17253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2424">dijesh.k.a</a><br /><strong>Subject:</strong> 5151<br /><strong>Posted:</strong> 13 November 2006 at 5:12am<br /><br /><P>hai,</P><P>&nbsp;&nbsp;U can use&nbsp; CXTPTabControl&nbsp; instead of&nbsp; CXTTabCtrl.</P><DIV>&nbsp;</DIV><DIV>&nbsp; <FONT size=4></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 13 Nov 2006 05:12:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5151&amp;PID=17253&amp;title=crash-using-themes-in-cxttabctrl#17253</guid>
  </item> 
  <item>
   <title><![CDATA[Crash using themes in CXTTabCtrl : Xtreme Toolkit Pro v10.2       VS.NET...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5151&amp;PID=16091&amp;title=crash-using-themes-in-cxttabctrl#16091</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=644">Mark Swaisgood</a><br /><strong>Subject:</strong> 5151<br /><strong>Posted:</strong> 26 September 2006 at 10:54am<br /><br />Xtreme Toolkit Pro v10.2<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>VS.NET 2003</DIV><DIV>&nbsp;</DIV><DIV>Using CXTTabCtrl in two different views.</DIV><DIV>Set the themes:</DIV><FONT size=3><P><FONT face="Courier New, Courier, mono" size=2>m_tab_ctrl.SetTheme(ThemeManager::Instance().GetThemeStyle());</FONT></P><DIV><FONT size=2></FONT></DIV><DIV></FONT><FONT size=2>where ThemeManager returns xtThemeOffice2003, etc.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>During app use the tabs show up with the appropriate theme. At exit, it crashes in:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>CXTThemeManager::~CXTThemeManager()<BR>{<BR>&nbsp;POSITION pos = m_mapDefaultFactories.GetStartPosition();<BR>&nbsp;void* pThemeFactoryClass;<BR>&nbsp;CXTThemeManagerStyleFactory* pFactory = 0;<BR>&nbsp;while (pos)<BR>&nbsp;{<BR>&nbsp;&nbsp;m_mapDefaultFactories.GetNextAssoc(pos, pThemeFactoryClass, (void *&amp;)pFactory);<BR>&nbsp;&nbsp;SAFE_DELETE(pFactory);<BR>&nbsp;}</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;<FONT color=#ff0000>ASSERT(m_factoryList.m_pHead == 0);&nbsp; </FONT><FONT color=#0000ff>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; asserts here then crashes<BR></FONT>&nbsp;m_factoryList.RemoveAll();<BR>}</FONT></DIV><DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New" size=2>Call Stack:</FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2>&gt;&nbsp;TyperAnalyzerD.exe!CXTThemeManager::~CXTThemeManager()&nbsp; Line 317 + 0x1d&nbsp;C++<BR>&nbsp;&nbsp;TyperAnalyzerD.exe!CXTThemeManager::`scalar deleting destructor'()&nbsp; + 0x2b&nbsp;C++<BR>&nbsp;&nbsp;mfc71d.dll!CProcessLocalObject::~CProcessLocalObject()&nbsp; Line 472 + 0x26&nbsp;C++<BR></FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><strong><EM>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.</EM></strong></FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><strong><EM></EM></strong></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2>Any help would be appreciated,</FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2>Mark</DIV></FONT><DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 26 Sep 2006 10:54:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5151&amp;PID=16091&amp;title=crash-using-themes-in-cxttabctrl#16091</guid>
  </item> 
 </channel>
</rss>