<?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 in release mode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Crash in release mode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 08:15:18 +0000</pubDate>
  <lastBuildDate>Mon, 20 Nov 2006 13:55:37 +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=5518</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 in release mode : Hi,  Thanks for sharing. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17494&amp;title=crash-in-release-mode#17494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5518<br /><strong>Posted:</strong> 20 November 2006 at 1:55pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Thanks for sharing.</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 13:55:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17494&amp;title=crash-in-release-mode#17494</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in release mode : The problem only exists with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17490&amp;title=crash-in-release-mode#17490</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1573">rock</a><br /><strong>Subject:</strong> 5518<br /><strong>Posted:</strong> 20 November 2006 at 11:41am<br /><br />The problem only exists with the mfc8 release shared dll and applications compiled using a setting other than the default "Struct Member Alignment" of 8 (/zp8).<DIV>&nbsp;</DIV><DIV>By surrounding any and all "afx*" header files with #pragma statements fixes the problem:</DIV><DIV>&nbsp;</DIV><DIV>#pragma pack(push, 8)</DIV><DIV>#include &lt;afxwin.h&gt;</DIV><DIV>#include &lt;afxext.h&gt;</DIV><DIV>#pragma pack(pop)</DIV><DIV>&nbsp;</DIV><DIV>This is the same thing I had to do to get the ToolKit Pro to work properly too.</DIV><DIV>&nbsp;</DIV><DIV>Kevin</DIV>]]>
   </description>
   <pubDate>Mon, 20 Nov 2006 11:41:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17490&amp;title=crash-in-release-mode#17490</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in release mode : That won&amp;#039;t be an easy task....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17349&amp;title=crash-in-release-mode#17349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1573">rock</a><br /><strong>Subject:</strong> 5518<br /><strong>Posted:</strong> 15 November 2006 at 3:01pm<br /><br />That won't be an easy task.&nbsp; Last time I checked, there were several 100,000s lines of code.&nbsp; Minimizing it and still have it work may not be possible.&nbsp; I've changed it so that the resources are included and not a separate DLL, but no change.&nbsp; I'm currently&nbsp;compiling with /anaylze turn on to see it anything shows up there.<DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Kevin</DIV>]]>
   </description>
   <pubDate>Wed, 15 Nov 2006 15:01:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17349&amp;title=crash-in-release-mode#17349</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in release mode : Hello,  I don&amp;#039;t think it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17312&amp;title=crash-in-release-mode#17312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5518<br /><strong>Posted:</strong> 15 November 2006 at 12:48am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I don't think it is in toolkit.... try to isolate problem to remove as much code as you can and attach project in issuetrack or here.</DIV>]]>
   </description>
   <pubDate>Wed, 15 Nov 2006 00:48:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17312&amp;title=crash-in-release-mode#17312</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in release mode : I have an application built with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17310&amp;title=crash-in-release-mode#17310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1573">rock</a><br /><strong>Subject:</strong> 5518<br /><strong>Posted:</strong> 14 November 2006 at 5:44pm<br /><br />I have an application built with VS 2005 that works fine in debug build, but release&nbsp;build crashes in CMainFrame::OnCreate() when calling<DIV>&nbsp;pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);</DIV><DIV>&nbsp;</DIV><DIV>By turning on debug in my app &amp; the Toolkit library I was able to track down what is happening.&nbsp; Here is the call stack at the time of the crash:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;00000077()&nbsp;<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CComCtlWrapper::_ImageList_AddMasked()&nbsp; + 0x8a bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CXTPImageManager::SetIcons()&nbsp; + 0x2d2 bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CXTPImageManager::SetIcons()&nbsp; + 0xba bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CXTPImageManager::SetIcons()&nbsp; + 0x24 bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CXTPMenuBar::LoadMenuBar()&nbsp; + 0x125 bytes&nbsp;C++<BR>&nbsp;&nbsp;ToolkitPro1031vc80.dll!CXTPCommandBars::SetMenu()&nbsp; + 0x6c bytes&nbsp;C++<BR>&gt;&nbsp;Asksam.exe!CMainFrame::OnCreate(tagCREATESTRUCTA * lpCreateStruct=0x00d4c868)&nbsp; Line 1767 + 0x13 bytes&nbsp;C++<BR></DIV><DIV>&nbsp;</DIV><DIV>It appears that the Toolkit cannot load the resource <FONT size=2>XTP_IDB_MENUBAR_ICONS in LoadMenuBar().&nbsp; </FONT></DIV><DIV>&nbsp;</DIV><DIV>I've tried calling&nbsp;&nbsp;<FONT size=2>XTPResourceManager()-&gt;SetResourceFile(_T(</FONT><FONT color=#ff0000 size=2>"ToolkitPro1031vc80.dll"</FONT><FONT size=2>)); within&nbsp;OnCreate() but it still crashes.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>To make localization easier this&nbsp;application has a resource dll that is loaded in&nbsp;InitInstance() with <FONT size=2>AfxLoadLibrary(strResDLL)</FONT>, then set using <FONT size=2>AfxSetResourceHandle(m_hInstResDLL)</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I've added #include &lt;ToolkitPro.rc&gt; to my rc2 file, but the result is the same.&nbsp; I even added the #include directly to the "Compile-time Directives".&nbsp; No luck still crashes in release build.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I'm stumpted.&nbsp; Its probably not a Toolkit problem, but any help would be appreciated.</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 14 Nov 2006 17:44:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5518&amp;PID=17310&amp;title=crash-in-release-mode#17310</guid>
  </item> 
 </channel>
</rss>