A
AgilentCoder
Hello All,
I have a windows CE 5.0 project and I am using OpenNETCF 2.0 Beta.
I create a 2 thread app that tries to block one thread until an event comes
in. I am waiting on that event using
OpenNETCF.EventWaitHandle.WaitAny(MyListOfEvents);
I expected this thing to block until one of the events in MyListOfEvents
went Set(). But it always returns immediately with a -1. I am also hoping
that the WaitAny command, once I get it working, will return the array index
of the event that went true.
So far no go. Any ideas on things that could be bad here? Why does the
function return -1?
Paul
I have a windows CE 5.0 project and I am using OpenNETCF 2.0 Beta.
I create a 2 thread app that tries to block one thread until an event comes
in. I am waiting on that event using
OpenNETCF.EventWaitHandle.WaitAny(MyListOfEvents);
I expected this thing to block until one of the events in MyListOfEvents
went Set(). But it always returns immediately with a -1. I am also hoping
that the WaitAny command, once I get it working, will return the array index
of the event that went true.
So far no go. Any ideas on things that could be bad here? Why does the
function return -1?
Paul