John Aldrin
2006-10-26 23:30:02 UTC
Hi,
Anyone know why the Set method would throw a System.IO.IOException w/a
message of "The handle is invalid."?
I have used Windbg to examine the ManualResetEvent object and it appears to
be valid (handle > 0 value, safeWaitHandle private var agress w/handle, state
of 4)
Following outlines how the ManualResetEvent is created and used.
ui thread creates obj
Event is created in obj ctor
object is added to a list
ui thread calls WaitOne on event
background thread wakes up and uses obj to do some work
Set method is called on event when work is complete - >exception is throw
here.
Thanx
jra
Anyone know why the Set method would throw a System.IO.IOException w/a
message of "The handle is invalid."?
I have used Windbg to examine the ManualResetEvent object and it appears to
be valid (handle > 0 value, safeWaitHandle private var agress w/handle, state
of 4)
Following outlines how the ManualResetEvent is created and used.
ui thread creates obj
Event is created in obj ctor
object is added to a list
ui thread calls WaitOne on event
background thread wakes up and uses obj to do some work
Set method is called on event when work is complete - >exception is throw
here.
Thanx
jra