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

  • Thread starter Thread starter Steve Sargent
  • Start date Start date
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
 
Back
Top