Hi,
I think there is some problem with the new version of the AsyncResult. I have
the following code for example:
IAsyncResult result = BeginWriteAccess(RequestNetworkConnection,
ConnectionData, messageResult);
result.AsyncWaitHandle.WaitOne();
I get two exceptions sometime at the WaitOne() line. My BeginReadAccess returns
an AsyncResult and is just a wrapper for the Read Writer Gate. This process has
to be a blocking process.
When I implement the AsyncResultNoValue then I dont get these exceptions. I
beleive there is some thread issue with the AsyncResult in the new version. This
process complete quite quickly and think thats why it throws an exeption.
Is this AsyncResult not supposed to be used like this?
Kind regards,
Wynand Jordaan.