<?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 when exiting a MDI app</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Assert when exiting a MDI app]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 15:44:19 +0000</pubDate>
  <lastBuildDate>Tue, 26 Jun 2007 01:18:00 +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=7429</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 when exiting a MDI app : Hi, Difficult to say without...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23934&amp;title=assert-when-exiting-a-mdi-app#23934</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7429<br /><strong>Posted:</strong> 26 June 2007 at 1:18am<br /><br /><P>Hi,</P><P>Difficult to say without any code :(</P><DIV>&nbsp;</DIV><DIV>Send your mainfrm.cpp and full stack&nbsp;&nbsp;to support@codejock.com.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jun 2007 01:18:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23934&amp;title=assert-when-exiting-a-mdi-app#23934</guid>
  </item> 
  <item>
   <title><![CDATA[Assert when exiting a MDI app : Hello,  not really. I have only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23908&amp;title=assert-when-exiting-a-mdi-app#23908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 7429<br /><strong>Posted:</strong> 25 June 2007 at 3:15am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>not really. I have only the main thread which resposible for the GUI.</DIV><DIV>&nbsp;</DIV><DIV>There are other threads, but they are not gui related. BTW, they are not active anymore when the app is about to exit.</DIV><DIV>&nbsp;</DIV><DIV>Do you think a parallel thread is causing the problem ?</DIV><DIV>&nbsp;</DIV><DIV>Alex</DIV>]]>
   </description>
   <pubDate>Mon, 25 Jun 2007 03:15:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23908&amp;title=assert-when-exiting-a-mdi-app#23908</guid>
  </item> 
  <item>
   <title><![CDATA[Assert when exiting a MDI app : Hi,   Do you have another thread...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23880&amp;title=assert-when-exiting-a-mdi-app#23880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7429<br /><strong>Posted:</strong> 22 June 2007 at 1:27pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Do you have another thread that can cleanup MFC GDI maps?</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jun 2007 13:27:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23880&amp;title=assert-when-exiting-a-mdi-app#23880</guid>
  </item> 
  <item>
   <title><![CDATA[Assert when exiting a MDI app : Hello,  sometimes, when I close...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23876&amp;title=assert-when-exiting-a-mdi-app#23876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 7429<br /><strong>Posted:</strong> 22 June 2007 at 11:18am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>sometimes, when I close my app, I got an ASSERT :</DIV><DIV>&nbsp;</DIV><DIV>#ifdef _DEBUG<BR>void CHandleMap::RemoveHandle(HANDLE h)<BR>{<BR>&nbsp;// make sure the handle entry is consistent before deleting<BR>&nbsp;CObject* pTemp = LookupTemporary(h);<BR>&nbsp;if (pTemp != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;// temporary objects must have correct handle values<BR>&nbsp;&nbsp;HANDLE* ph = (HANDLE*)((BYTE*)pTemp + m_nOffset);&nbsp; // after CObject<BR>&nbsp;&nbsp;ASSERT(ph&#091;0&#093; == h || ph&#091;0&#093; == NULL);<BR>&nbsp;&nbsp;if (m_nHandles == 2)<BR>&nbsp;&nbsp;<FONT color=#ff0000>&nbsp;ASSERT(ph&#091;1&#093; == h);&nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&lt;&lt;&lt;<BR></FONT>&nbsp;}<BR></DIV><DIV>The stack is like :</DIV><DIV><FONT color=#0000ff><P>&gt;&nbsp;mfc80d.dll!CHandleMap::RemoveHandle(void * h=0xb8012aca)&nbsp; Line 218 + 0x1e bytes&nbsp;C++<BR>&nbsp;&nbsp;mfc80d.dll!CDC::Detach()&nbsp; Line 122&nbsp;C++<BR>&nbsp;&nbsp;mfc80d.dll!CClientDC::~CClientDC()&nbsp; Line 1034 + 0x8 bytes&nbsp;C++<BR>&nbsp;&nbsp;STBSim.exe!CXTPToolBar::CalcDockingLayout(int nLength=1499, unsigned long dwMode=11, int nWidth=0)&nbsp; Line 746 + 0x2f bytes&nbsp;C++<BR>&nbsp;&nbsp;STBSim.exe!CXTPDockBar::_AdjustRow(CArray&lt;CXTPToolBar *,CXTPToolBar *&gt; &amp; arrRow={...}, CPoint pt={...}, int nLength=1499, int bHorz=2, AFX_SIZEPARENTPARAMS * lpLayout=0x0012d564, int &amp; nRemove=-1)&nbsp; Line 180 + 0x2d bytes&nbsp;C++<BR>&nbsp;&nbsp;STBSim.exe!CXTPDockBar::AdjustRow(CArray&lt;CXTPToolBar *,CXTPToolBar *&gt; &amp; arrRow={...}, CPoint pt={...}, int nLength=1499, int bHorz=2, AFX_SIZEPARENTPARAMS * lpLayout=0x0012d564)&nbsp; Line 343 + 0x24 bytes&nbsp;C++<BR>&nbsp;&nbsp;STBSim.exe!CXTPDockBar::CalcDynamicLayout(int nLength=1499, unsigned long nMode=11, AFX_SIZEPARENTPARAMS * lpLayout=0x0012df88)&nbsp; Line 403 + 0x23 bytes&nbsp;C++<BR>&nbsp;&nbsp;STBSim.exe!CXTPDockBar::OnSizeParent(unsigned int __formal=0, long lParam=1236872)&nbsp; Line 460&nbsp;C++<BR>&nbsp;&nbsp;mfc80d.dll!CWnd::OnWndMsg(unsigned int message=865, unsigned int wParam=0, long lParam=1236872, long * pResult=0x0012d884)&nbsp; Line 2004 + 0x11 bytes&nbsp;C++<BR></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=1></P><DIV><FONT face="Arial, Helvetica, sans-serif" color=#000000 size=2>It's a MDI app with 3 open documents / frame windows. 2 different doc types.</FONT></DIV><DIV><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial color=#000000 size=2>Any ideas ?</FONT></DIV><DIV><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial color=#000000 size=2>Thx ín advance,</FONT></DIV><DIV><FONT face=Arial color=#000000 size=2>Alex</FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 22 Jun 2007 11:18:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7429&amp;PID=23876&amp;title=assert-when-exiting-a-mdi-app#23876</guid>
  </item> 
 </channel>
</rss>