G
Guest
Hi,
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
asynch.
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
thread?
Thanks in advance,
-P
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
asynch.
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
thread?
Thanks in advance,
-P