Results of calling IAsyncResult.AsyncWaitHandle.WaitOne() after async operation is through

S

Steve Sargent

Hi:

I was wondering whether calling a
IAsyncResult.AsyncHandle.WaitOne() after an async operation has
completed would cause any problems.

I read in the MSDN that an ObjectDisposedException is thrown if the
current WaitHandle has already been disposed, but i'm not sure when
that happens (is it after the EndInvoke call?).

I'm writing code that will do work and then get a handle. At the
moment, it's not checking whether it's done before getting wait
handle. Would like to know if that will cause problems.

Thanks in advance for any help to my question.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top