<?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 : CXTThemeManager Error</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Visual C++ MFC : CXTThemeManager Error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:15:50 +0000</pubDate>
  <lastBuildDate>Tue, 12 May 2009 10:22:05 +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=14256</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[CXTThemeManager Error : Works like a charm...Thanks! ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48900&amp;title=cxtthememanager-error#48900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 12 May 2009 at 10:22am<br /><br />Works like a charm...Thanks!]]>
   </description>
   <pubDate>Tue, 12 May 2009 10:22:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48900&amp;title=cxtthememanager-error#48900</guid>
  </item> 
  <item>
   <title><![CDATA[CXTThemeManager Error : Hi, Best place to delete self...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48882&amp;title=cxtthememanager-error#48882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 12 May 2009 at 2:10am<br /><br />Hi,<DIV>Best place to delete self is PostNcDestroy&nbsp;method</DIV><DIV>&nbsp;</DIV><DIV>void CYourWnd::PostNcDestroy()<BR>{<BR>&nbsp;delete this;<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Tue, 12 May 2009 02:10:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48882&amp;title=cxtthememanager-error#48882</guid>
  </item> 
  <item>
   <title><![CDATA[CXTThemeManager Error : I actually tracked down a solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48869&amp;title=cxtthememanager-error#48869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 11 May 2009 at 2:29pm<br /><br />I actually tracked down a solution -- not a pretty one, but a solution nonetheless!&nbsp; Like you mentioned, Oleg, I do need to delete the tab dialog since I initialized it with a "new".&nbsp; Since the dialog is modeless, the only place I could track down to delete it is in its own OnDestroy() method.&nbsp; At the very end, I just added in the line "delete this;" .&nbsp; I'm sure there is a much more elegant way to do this, but this works for now.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Mon, 11 May 2009 14:29:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48869&amp;title=cxtthememanager-error#48869</guid>
  </item> 
  <item>
   <title><![CDATA[CXTThemeManager Error : Hi Oleg,Thanks for your response....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48842&amp;title=cxtthememanager-error#48842</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 11 May 2009 at 4:27am<br /><br />Hi Oleg,<br><br>Thanks for your response.&nbsp; I'm having a really hard time tracking down this bug.&nbsp; I do create the tab dialog by way of a "new".&nbsp; I tried your suggestion of deleting it versus merely destroying the window, but if I try to delete it, I get a heap free error instead.<br><br>One thing...I recently had to add a manifest condition to my stdafx.h file for any of the theme settings to take effect.&nbsp; It was after this that I started getting this error.&nbsp; Could this be the problem?&nbsp; I did have a reference to include the afxcmn.h file (if necessary) in the stdafx.h file, but that wasn't working, so I added in the manifest part and that worked.&nbsp; Just in case this might be the problem, I've included the stdafx.h includes and pragma comments that I'm using below:<br><br>//--------------------------------------------------------------------------------------------------------<br><br>#ifndef _AFX_NO_AFXCMN_SUPPORT<br>#include &lt;afxcmn.h&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // MFC support for Windows Common Controls<br>#endif // _AFX_NO_AFXCMN_SUPPORT<br><br>#if (_MSC_VER &gt; 1310)&nbsp;&nbsp; // VS2005<br>#if defined _M_IX86<br>#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")<br>#elif defined _M_IA64<br>#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")<br>#elif defined _M_X64<br>#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")<br>#else<br>#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")<br>#endif<br>#endif<br><br>//--------------------------------------------------------------------------------------------------------<br><br><br>Thanks for all of your help!<br><br><br><br>]]>
   </description>
   <pubDate>Mon, 11 May 2009 04:27:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48842&amp;title=cxtthememanager-error#48842</guid>
  </item> 
  <item>
   <title><![CDATA[CXTThemeManager Error : Hi,  This ASSERT means you have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48835&amp;title=cxtthememanager-error#48835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 11 May 2009 at 1:17am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>This ASSERT means you have some non destroyed object. Check maybe you create one with "new" and don't delete it.</DIV>]]>
   </description>
   <pubDate>Mon, 11 May 2009 01:17:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48835&amp;title=cxtthememanager-error#48835</guid>
  </item> 
  <item>
   <title><![CDATA[CXTThemeManager Error : When exiting my application at...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48824&amp;title=cxtthememanager-error#48824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 14256<br /><strong>Posted:</strong> 09 May 2009 at 10:14am<br /><br />When exiting my application at run-time, I'm getting an error associated with the CXTThemeManager.&nbsp; I actually never reference the XTThemeManager/XTThemeManager in any of the application code, so I'm not really sure how to resolve the issue.<br><br>The error only occurs on exit if I activate a CXTPPropertySheet dialog containing tabs during application run-time.&nbsp; It crashes on the check ASSERT(m_factoryList.m_pHead == 0) on line 325 of XTThemeManager.cpp.<br><br>The call stack up to the error is below:<br><br>&nbsp;&nbsp; &nbsp;&nbsp; &gt;EdgeWise.exe!CXTThemeManager::~CXTThemeManager()&nbsp; Line 325 + 0x21 bytes&nbsp;&nbsp; &nbsp;C++<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!CXTThemeManager::`scalar deleting destructor'()&nbsp; + 0x2b bytes&nbsp;&nbsp; &nbsp;C++<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!CProcessLocalObject::~CProcessLocalObject()&nbsp; Line 480 + 0x28 bytes&nbsp;&nbsp; &nbsp;C++<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!CProcessLocal&lt;CXTThemeManager&gt;::~CProcessLocal&lt;CXTThemeManager&gt;()&nbsp; + 0x2b bytes&nbsp;&nbsp; &nbsp;C++<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!`dynamic atexit destructor for 'CXTThemeManager::m_sThemeManager''()&nbsp; + 0x28 bytes&nbsp;&nbsp; &nbsp;C++<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!doexit(int code=0, int quick=0, int retcaller=0)&nbsp; Line 591&nbsp;&nbsp; &nbsp;C<br>&nbsp;&nbsp;&nbsp; &nbsp; &gt;EdgeWise.exe!exit(int code=0)&nbsp; Line 412 + 0xd bytes&nbsp;&nbsp; &nbsp;C<br><br><br>I'd appreciate any insight into this problem.<br><br>Thanks!]]>
   </description>
   <pubDate>Sat, 09 May 2009 10:14:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14256&amp;PID=48824&amp;title=cxtthememanager-error#48824</guid>
  </item> 
 </channel>
</rss>