<?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 : CXTPBrowseEdit asserts in your sample</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPBrowseEdit asserts in your sample]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:55:06 +0000</pubDate>
  <lastBuildDate>Tue, 27 Nov 2012 16:49:42 +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=20341</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[CXTPBrowseEdit asserts in your sample :   Yoursample project &amp;#034;BrowseEdit_vc90&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20341&amp;PID=69295&amp;title=cxtpbrowseedit-asserts-in-your-sample#69295</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2349">MichaelN</a><br /><strong>Subject:</strong> 20341<br /><strong>Posted:</strong> 27 November 2012 at 4:49pm<br /><br />Your&nbsp;sample project "BrowseEdit_vc90" asserts when using&nbsp;my own CFileDialog. In your CBrowseEditDlg.cpp there is a <font color="#0066ff">#if 0</font> block where you give code to implement a CFileDialog. I switched that to <font color="#0033ff">#if 1</font> to enable it, then re-built the sample app and ran it. When I click the &#091;...&#093; button to open the CFileDialog it works the first time. I close the file dialog&nbsp;and click &#091;...&#093; again and it asserts&nbsp;at line 377 of dlgfile.cpp. The assert is here:<div><p><font size="2">				<font face="Courier New, Courier, mono">hr = (</font></font><p><font face="Courier New, Courier, mono"><font size="2"><font color="#0000ff"><font color="#0000ff">static_cast</font></font>&lt;IFileDialog*&gt;(m_pIFileDialog))-&gt;SetFileTypes(nFilterCount, pFilter);</font></font></p><font size="2" face="Courier New, Courier, mono"></font><p><font size="2" face="Courier New, Courier, mono">				ENSURE(SUCCEEDED(hr));</font></p><div><font size="2">The debugger shows nFilterCount = 2 and pFilter is the expected filter string.</font></div><div><font size="2"></font>&nbsp;</div></div>Then I tried what you recommend, to make the CFileDialog a class variable and&nbsp;create it in the dialog constructor. I get exactly the same ASSERT.<div></div><div>Michael</div>]]>
   </description>
   <pubDate>Tue, 27 Nov 2012 16:49:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20341&amp;PID=69295&amp;title=cxtpbrowseedit-asserts-in-your-sample#69295</guid>
  </item> 
 </channel>
</rss>