<?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 : PostQuitMessage(0) causes crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : PostQuitMessage(0) causes crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 08:41:25 +0000</pubDate>
  <lastBuildDate>Fri, 14 Aug 2009 03:30:21 +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=14933</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[PostQuitMessage(0) causes crash : Sure it&amp;#039;s a bug. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51970&amp;title=postquitmessage0-causes-crash#51970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 14 August 2009 at 3:30am<br /><br />Sure it's a bug.]]>
   </description>
   <pubDate>Fri, 14 Aug 2009 03:30:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51970&amp;title=postquitmessage0-causes-crash#51970</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash : Still, I don&amp;#039;t see any reason...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51957&amp;title=postquitmessage0-causes-crash#51957</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2223">Tomasz</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 13 August 2009 at 5:15pm<br /><br />Still, I don't see any reason why PostQuitMessage would need to create crash with XTP ? Isn't it a bug?<br /><br /><a href="http://blogs.msdn.com/oldnewthing/archive/2005/11/04/489028.aspx" target="_blank">http://blogs.msdn.com/oldnewthing/archive/2005/11/04/489028.aspx</a>]]>
   </description>
   <pubDate>Thu, 13 Aug 2009 17:15:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51957&amp;title=postquitmessage0-causes-crash#51957</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash : I agree, but suppose some badly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51884&amp;title=postquitmessage0-causes-crash#51884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 12 August 2009 at 3:14am<br /><br />I agree, but suppose some badly written code does this. Is it possible to destroy the object somehow? CWinApp::PreTranslateMessage?]]>
   </description>
   <pubDate>Wed, 12 Aug 2009 03:14:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51884&amp;title=postquitmessage0-causes-crash#51884</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash : Hi,  I don&amp;#039;t think PostQuitMessage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51880&amp;title=postquitmessage0-causes-crash#51880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 12 August 2009 at 3:02am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I don't think <FONT color=#010001 size=2><strong>PostQuitMessage</strong> is best way to terminate application - destructor of CMainFrame is not called and its reason of issue.&nbsp;&nbsp; Just close MainWindow instead if you need quit.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 12 Aug 2009 03:02:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51880&amp;title=postquitmessage0-causes-crash#51880</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash : Very easy to reproduce with your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51816&amp;title=postquitmessage0-causes-crash#51816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 10 August 2009 at 9:39am<br /><br />Very easy to reproduce with your SDI-sample:<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CMainFrame</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnCreate</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>LPCREATESTRUCT</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>lpCreateStruct</FONT></FONT><FONT size=2>)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; ...</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; ...</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; </FONT></DIV><DIV><strong><FONT size=2>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>PostMessage</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>WM_COMMAND</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>ID_STYLES_CHANGE</FONT></FONT><FONT size=2>);</FONT></strong></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV><DIV><DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CMainFrame</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnEmptyCommand</FONT></FONT><FONT size=2>()</DIV></DIV><DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp; </FONT><strong><FONT color=#010001 size=2><FONT color=#010001 size=2>PostQuitMessage</FONT></FONT><FONT size=2>(0);</FONT></strong></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Probably not an issue, but still suspect that it crashes like this...</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 10 Aug 2009 09:39:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51816&amp;title=postquitmessage0-causes-crash#51816</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash : Hi, Please show call stack. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51801&amp;title=postquitmessage0-causes-crash#51801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 10 August 2009 at 3:20am<br /><br /><P>Hi,</P><DIV>Please show call stack.</DIV>]]>
   </description>
   <pubDate>Mon, 10 Aug 2009 03:20:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51801&amp;title=postquitmessage0-causes-crash#51801</guid>
  </item> 
  <item>
   <title><![CDATA[PostQuitMessage(0) causes crash :  XTP 13.1.  During startup:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51765&amp;title=postquitmessage0-causes-crash#51765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14933<br /><strong>Posted:</strong> 08 August 2009 at 7:55am<br /><br /><FONT color=#010001 size=2><FONT color=#010001 size=2><DIV>XTP 13.1.</DIV><DIV>&nbsp;</DIV><DIV>During startup:</DIV><DIV>XTPImageManager()-&gt;InternalAddRef();<BR>m_pItems-&gt;SetImageManager(XTPImageManager());</DIV><DIV>&nbsp;</DIV><DIV>And later:</DIV><DIV>PostQuitMessage</FONT></FONT><FONT size=2>(0);</DIV><DIV>&nbsp;</DIV><DIV>Causing a <strong>crash in <FONT color=#010001 size=2><FONT color=#010001 size=2>CCmdTarget</FONT></FONT><FONT size=2>::~</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CCmdTarget</FONT></FONT></strong><FONT size=2><strong>() </strong>for CXTPImageManager.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any ideas?</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 08 Aug 2009 07:55:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14933&amp;PID=51765&amp;title=postquitmessage0-causes-crash#51765</guid>
  </item> 
 </channel>
</rss>