Search the web
Sign In
New User? Sign Up
PowerThreading · Richter/Wintellect Power Threading
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Exception in AsyncResult   Message List  
Reply | Forward Message #535 of 614 |
Re: Exception in AsyncResult

Hi,

Sorry I forgot to mention which exceptions I got.
It throws two exceptions, both on AsyncWaitHandle.WaitOne line:
1. NullReferenceException
2. ObjectDisposedException

--- In PowerThreading@yahoogroups.com, "wynandjordaan@..." <wynandjordaan@...>
wrote:
>
> 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.
>





Mon Jun 22, 2009 8:34 am

wynandjordaa...
Offline Offline
Send Email Send Email

Forward
Message #535 of 614 |
Expand Messages Author Sort by Date

Hi, I think there is some problem with the new version of the AsyncResult. I have the following code for example: IAsyncResult result =...
wynandjordaan@...
wynandjordaa...
Offline Send Email
Jun 22, 2009
8:12 am

Hi, Sorry I forgot to mention which exceptions I got. It throws two exceptions, both on AsyncWaitHandle.WaitOne line: 1. NullReferenceException 2....
wynandjordaan@...
wynandjordaa...
Offline Send Email
Jun 22, 2009
8:35 am

I'm sorry but this is never enough information for me to actually solve a problem. If you report that exceptions are being thrown, then it would be useful to...
Jeffrey Richter (Wint...
jeffrey.richter
Offline Send Email
Jun 22, 2009
3:33 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help