<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : CancelAsync</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : CancelAsync</description>
  <pubDate>Tue, 14 Apr 2026 23:24:34 -700</pubDate>
  <lastBuildDate>Wed, 26 Sep 2007 23:20:48 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=454</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>CancelAsync : I have a form that is constantly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=454&amp;PID=1348#1348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=131" rel="nofollow">-ook</a><br /><strong>Subject:</strong> 454<br /><strong>Posted:</strong> 26-Sep-2007 at 11:20pm<br /><br />I have a form that is constantly using an asynchronous query. It works well (most of the time, but that is a separate issue).<br><br>When I close my windows form, I issue a CancelAsync command, this also works.... most of the time. Occasionally I get an error when the form is closed, I can replicate this error by commenting out the CancelAsync line in the FormClosing event. Therefore I can safely conclude that the CancelAsync command occasionally&nbsp; does not 'take'. The documentation mentions a race condition may sometimes occur, I believe this is the case.<br><br>My question therefore is, what is the recommended solution for ensuring an async command is cancel when called from a FormClosing event?<br><br>Thanks<br>]]>
   </description>
   <pubDate>Wed, 26 Sep 2007 23:20:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=454&amp;PID=1348#1348</guid>
  </item> 
 </channel>
</rss>