I have a delegate which I call BeginInvoke on. I use the waithandle.WaitOne
to wait for the delegate to finish.
If there is an exception in the delegate call, waithandle.WaitOne returns
true and the asyncresult.IsFinished(Completed) also returns true.
How do I know if there is an exception and the call was completed but with
an exception?
John Conwell - 18 Feb 2004 00:46 GMT
wrap the call to the web service's EndXxxx() method in a try catch, and catch for a soap exception. The exception wont be returned until you actually call the End method. Also, if you dont call the End method, you'll never know that an exception occurred
----- Sankar Nemani wrote: -----
I have a delegate which I call BeginInvoke on. I use the waithandle.WaitOne
to wait for the delegate to finish.
If there is an exception in the delegate call, waithandle.WaitOne returns
true and the asyncresult.IsFinished(Completed) also returns true.
How do I know if there is an exception and the call was completed but with
an exception?
Rakesh Khanduja - 18 Feb 2004 06:26 GMT
Use Exception handling with try and catch block if a exception arisees in the try block when u use the delegates or function pointers is catched in catch block
----- Sankar Nemani wrote: ----
I have a delegate which I call BeginInvoke on. I use the waithandle.WaitOn
to wait for the delegate to finish
If there is an exception in the delegate call, waithandle.WaitOne return
true and the asyncresult.IsFinished(Completed) also returns true
How do I know if there is an exception and the call was completed but wit
an exception