<?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 : assert in wincore.cpp line 3117</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : assert in wincore.cpp line 3117]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 10:57:45 +0000</pubDate>
  <lastBuildDate>Sun, 24 Oct 2004 11:48:26 +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=1314</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[assert in wincore.cpp line 3117 :  Hi, I wrote a little function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1314&amp;PID=3672&amp;title=assert-in-wincore-cpp-line-3117#3672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=401">msamocha</a><br /><strong>Subject:</strong> 1314<br /><strong>Posted:</strong> 24 October 2004 at 11:48am<br /><br /><P>&nbsp;</P><P>Hi,</P><P>I wrote a little function to restore the command bars layout to their default like this: </P><P><strong><FONT color=#0000ff>LoadCommandBars(_T("DefaultCommandBars"));</FONT></strong></P><P>It works fine and all toolbars get to their default position but if the users uses it to restore the toolbars position and&nbsp;then exits the program, I get an assertion in </P><P>wincore.cpp line 3117 :</P><P><strong><FONT color=#0000ff>BOOL PASCAL CWnd::WalkPreTranslateTree(HWND hWndStop, MSG* pMsg)</FONT></strong></P><P><strong><FONT color=#0000ff>{</FONT></strong></P><P><strong><FONT color=#0000ff>&nbsp;ASSERT(hWndStop == NULL || ::IsWindow(hWndStop));</FONT></strong></P><P><strong><FONT color=#0000ff>&lt;...&gt;</FONT></strong></P><P>apparently hWndStop (the Main Window Handle) is no longer a window, and&nbsp; <strong>::IsWindow(hWndStop);</strong> fails... and asserts when the app is closed...</P><P>BTW if my reset function docks a floating toolbar A and then I re-float toolbar A manually everything is Ok. ie there is only a problem if my function docks a floating toolbar and the user keeps it docked and the closes the app...</P><P>&nbsp;</P><P>Any ideas why this is so or how to prevent this?</P><P>&nbsp;</P><FONT color=#ffffff size=2><P>&lt;..BOOL PASCAL CWnd::WalkPreTranslateTree(HWND hWndStop, MSG* pMsg)</P><P>{</P><P>ASSERT(hWndStop == NULL || ::IsWindow(hWndStop));</P><P></FONT><FONT color=#ffffff size=2>ds</P></FONT>]]>
   </description>
   <pubDate>Sun, 24 Oct 2004 11:48:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1314&amp;PID=3672&amp;title=assert-in-wincore-cpp-line-3117#3672</guid>
  </item> 
 </channel>
</rss>