<?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 : Debug Assertion Failed when I create CXTOutBarCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Debug Assertion Failed when I create CXTOutBarCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 19:10:35 +0000</pubDate>
  <lastBuildDate>Mon, 08 Jan 2007 08:34:29 +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=6028</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[Debug Assertion Failed when I create CXTOutBarCtrl : It works now,thank you oleg.without...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=19006&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#19006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 8:34am<br /><br />It works now,thank you oleg.without your help , I will never know where the problem is.<DIV>Thank you again.</DIV><DIV>&nbsp;</DIV><DIV>Roland Richard</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 08:34:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=19006&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#19006</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : Hi, Problem that OnInitialUpdate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=19003&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#19003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 7:50am<br /><br /><P>Hi,</P><DIV>Problem that OnInitialUpdate called twice.</DIV><DIV>&nbsp;</DIV><DIV>Remove </DIV><DIV>&nbsp;</DIV><DIV>pWnd-&gt;SendMessage(WM_INITIALUPDATE);</DIV><DIV>&nbsp;</DIV><DIV>from CTabbedViewView::AddView.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>This line was in old releases of our sample. In last releases it was removed.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 07:50:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=19003&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#19003</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : in release mode, it&amp;#039;s OK,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18995&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 6:27am<br /><br /><P>in release mode, it's OK, but in debug mode,</P><P>wincore.cpp&nbsp; 626 line generates assert</P><DIV>ASSERT(pWnd-&gt;m_hWnd == NULL);&nbsp;&nbsp; // only do once</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 06:27:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18995&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18995</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : OK, I attach code here: http:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18994&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 6:04am<br /><br /><P>OK, I attach code here:</P><DIV><a href="http://www.outsourcexp.com/TabbedView.zip" target="_blank">http://www.outsourcexp.com/TabbedView.zip</A></DIV><DIV>Can you attach your formview project&nbsp;at reply? </DIV><DIV>Thank you veru much!</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 06:04:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18994&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18994</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : Hello, You do something wrong....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18989&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 5:00am<br /><br />Hello,<DIV>You do something wrong. I create new project with CFormView as view, inserted </DIV><FONT size=1><P>m_softOutBarExpert.Create(WS_CHILD|WS_VISIBLE, CRect(0,0,100,100), </FONT><FONT color=#0000ff size=1>this</FONT><FONT size=1>,100, OBS_XT_DEFAULT);</P><DIV></DIV><DIV>and </DIV><FONT size=1><P>CXTOutBarCtrl m_softOutBarExpert;</P><DIV></DIV>all work as expected.<DIV></DIV><DIV></DIV>Attach your project to check what you do.</FONT></FONT>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 05:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18989&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18989</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : Then I followed the code to XTOutbarCtrl.cpp: BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18988&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 4:52am<br /><br />Then I followed the code to XTOutbarCtrl.cpp:<DIV>BOOL CXTOutBarCtrl::CreateEx(DWORD dwExStyle, DWORD dwStyle, const RECT&amp;&nbsp; rect, CWnd* pParentWnd, UINT nID, const DWORD dwFlags)<BR>{<BR>&nbsp;ASSERT(dwStyle &amp; WS_CHILD);<BR>&nbsp;ASSERT_VALID(pParentWnd);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //here generates assert</DIV><DIV>&nbsp;if(!CWnd::CreateEx(dwExStyle, NULL, NULL, dwStyle, rect, pParentWnd, nID)) {<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}</DIV><DIV>&nbsp;m_dwFlags = dwFlags;</DIV><DIV>&nbsp;return TRUE;<BR>}</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 04:52:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18988&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18988</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : void CSoftView::OnInitialUpdate(){...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18987&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 4:45am<br /><br />void CSoftView::OnInitialUpdate()<BR>{<BR>&nbsp;&nbsp;&nbsp; CFormView::OnInitialUpdate();<DIV>&nbsp;&nbsp;&nbsp; m_softOutBarExpert.Create(WS_CHILD|WS_VISIBLE, CRect(0,0,0,0), this,IXT_OUTLOOKBAR, OBS_XT_DEFAULT)&nbsp; //here generates assert</DIV><DIV>}</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 04:45:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18987&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18987</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : Hello, try to call OnInitialUpdate()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18972&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18972</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 2:50am<br /><br />Hello,<DIV>try to call OnInitialUpdate() of base class first.</DIV><DIV>&nbsp;</DIV><DIV>What line generates assert?</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 02:50:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18972&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18972</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : In CDialog, everything is OK,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18971&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2568">zjroland</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 2:32am<br /><br />In CDialog, everything is OK, but in CFormView, <strong>Debug Assertion Failed when I create CXTOutBarCtr .<DIV></strong>I think the reason is that we can't use "this" to point to a pParentWnd. you can try to add a <strong>CXTOutBarCtr&nbsp; in your sample-TabbedView.</DIV></strong>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 02:32:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18971&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18971</guid>
  </item> 
  <item>
   <title><![CDATA[Debug Assertion Failed when I create CXTOutBarCtrl : Hi,  I used AppWizard and created...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18970&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 6028<br /><strong>Posted:</strong> 08 January 2007 at 1:08am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I used AppWizard and created a MDI form view app then added the above code you mentioned and was not able to reproduce the problem. Make sure you check your dialog form view resource to ensure it is valid.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>Codejock Support</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 01:08:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6028&amp;PID=18970&amp;title=debug-assertion-failed-when-i-create-cxtoutbarctrl#18970</guid>
  </item> 
 </channel>
</rss>