Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

OpenNETCF EventWaitHandle.WaitAny()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AgilentCoder - 28 Apr 2006 18:38 GMT
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
<ctacke/> - 28 Apr 2006 18:50 GMT
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

> Hello All,
>
[quoted text clipped - 13 lines]
>
> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.