PC Review

Posts: n/a
      17th Nov 2004

I need help on how to check and wait if an async
DownloadDelegate download = new DownloadDelegate(DownloadFile);
IAsyncResult aResult = download.BeginInvoke(null, null); // start download
aResult.AsyncWaitHandle.WaitOne(); // wait for download completes
download.EndInvoke(aResult); // download all files are done

But now I am having the problem with the winform - it is locked (because of
the WaitOne()).

So, how do I wait and see if an async. operation is done and not locking UI

Thanks in advance,
Reply With Quote
Andy Mortimer [MS]
Posts: n/a
      18th Nov 2004
Looks like you need a callback


Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at

Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo: Asynch Web Service on top of asynch layer? =?Utf-8?B?aGVyYmVydA==?= Microsoft Dot NET 0 26th Feb 2007 01:52 PM
Asynch programming =?Utf-8?B?QUpQ?= Microsoft Dot NET Framework 2 20th Sep 2004 05:30 PM
Problems with Asynch Processing in ASP.Net Glen Wolinsky Microsoft ASP .NET 11 30th Jan 2004 06:14 AM
Access web page after asynch callback Glen Microsoft ASP .NET 3 23rd Jan 2004 05:19 PM
Asynch Webqueries Excel dweeb Microsoft Excel Programming 0 15th Aug 2003 12:07 AM




All times are GMT +1. The time now is 04:49 AM.