<?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 : TaskDialog infinite loop on an error case</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : TaskDialog infinite loop on an error case]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 18:55:16 +0000</pubDate>
  <lastBuildDate>Wed, 03 Jun 2026 05:54:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>1440</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24644</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[TaskDialog infinite loop on an error case : We are using an CXTPTaskDialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24644&amp;PID=79401&amp;title=taskdialog-infinite-loop-on-an-error-case#79401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9141">Julianis</a><br /><strong>Subject:</strong> 24644<br /><strong>Posted:</strong> 03 June 2026 at 5:54am<br /><br />We are using an CXTPTaskDialog in our application.<br><br>I'm using incorrect settings and the dialog fails to create.<br>In this case the application ends up in an infinite loop.<br><br>The culprit seems to be the handling of the error case in&nbsp;<br><br><pre style="font-family:'Cascadia Mono';font-size:9pt;color:#000000"><span style="color:#0000ff">int</span> CXTPTaskDialogFrame::OnCreate<span style="color:#1a94ff">(</span>LPCREATESTRUCT lpCreateStruct<span style="color:#1a94ff">)<br>{<br>  ...<br>  </span>	<span style="color:#0000ff">if</span> <span style="color:#ffd702">(</span>!CreateClient<span style="color:#d86ac2">(</span>TRUE<span style="color:#d86ac2">)</span><span style="color:#ffd702">)</span>	<span style="color:#ffd702">{</span>		TRACE0<span style="color:#d86ac2">(</span><span style="color:#a31515">"Failed to create Task Dialog UI window.\n"</span><span style="color:#d86ac2">)</span>;		<span style="color:#0000ff">return</span> FALSE;	<span style="color:#ffd702">}</span><br>}<br><br>The return FALSE seems to be incorrect (the method returns 0 as success).<br><br>If I patch the code with a return -1 when CreateClient() fails, the infinite loop no longer happens.</pre><br>]]>
   </description>
   <pubDate>Wed, 03 Jun 2026 05:54:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24644&amp;PID=79401&amp;title=taskdialog-infinite-loop-on-an-error-case#79401</guid>
  </item> 
 </channel>
</rss>