OpenNETCF EventWaitHandle.WaitAny()

  • Thread starter Thread starter AgilentCoder
  • Start date Start date
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
 
It definitely should return the index of the handle that was signalled. Do
you have a simple repro app that I can run against the source and see what's
going on? Email it to me directly if you can.

support[@]opennetcf[.]com

-Chris
 
Back
Top