<?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 : Module state data problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Module state data problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 04:59:10 +0000</pubDate>
  <lastBuildDate>Fri, 17 Jul 2009 18:56:28 +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=10926</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[Module state data problem : Oleg,  Has V13 stopped storing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=51070&amp;title=module-state-data-problem#51070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10926<br /><strong>Posted:</strong> 17 July 2009 at 6:56pm<br /><br />Oleg,<DIV>&nbsp;</DIV><DIV>Has V13 stopped storing the objects or at least quit waiting until dll unload to let them go?</DIV>]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 18:56:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=51070&amp;title=module-state-data-problem#51070</guid>
  </item> 
  <item>
   <title><![CDATA[Module state data problem : Hi,  Think you can call manually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=36338&amp;title=module-state-data-problem#36338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10926<br /><strong>Posted:</strong> 06 June 2008 at 1:08am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Think you can call manually XTPOffice2007Images()-&gt;RemoveAll(); in some ExitInstance of your module.</DIV>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 01:08:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=36338&amp;title=module-state-data-problem#36338</guid>
  </item> 
  <item>
   <title><![CDATA[Module state data problem : When tracking a popup menu, we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=36330&amp;title=module-state-data-problem#36330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10926<br /><strong>Posted:</strong> 05 June 2008 at 2:52pm<br /><br />When tracking a popup menu, we are finding that the code can call LoadImage on one of the theme objects. When it does, it creates an image object (in my case CXTPOffice2007Images object).<DIV>&nbsp;</DIV><DIV>The image object&nbsp;is derived from CCmdTarget. When created, CCmdTarget obtains the current module state data pointer and directly stores it in instance data.</DIV><DIV>&nbsp;</DIV><DIV>Then the CJ code that created the image object stores the object in an array. Later when the toolkitpro DLL unloads, all of these objects are disposed of.</DIV><DIV>&nbsp;</DIV><DIV>So now we have a race condition where the order that DLLs unload becomes an issue. If the module that was active when the image was created is unloaded before the toolkitpro module, MFC can crash when the CCmdTarget object is given its release from the codejock images (removeall?) method.</DIV><DIV>&nbsp;</DIV><DIV>Shouldn't&nbsp;the CodeJock code make sure that if it creates and stores a CCmdTarget based CodeJock object that before creating the object the codejock module state should be made the active module state? Otherwise, how can we robustly prevent crashes during shutdown?</DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 14:52:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10926&amp;PID=36330&amp;title=module-state-data-problem#36330</guid>
  </item> 
 </channel>
</rss>