Monitor.Wait() and Pulse() not supported

L

lsheung

Hi,

I'm trying to deploy a hardware dirver to Pocket PC 2002. I need to use
Monitor.Wait() and Monitor.Pulse(). I'm using c# with VS 2003.

I've test the code as an console application and everything is working
fine. Then I tried it with Pocket PC 2002. It can't even compile.
The problem is both Monitor.Wait() and Monitor.Pulse() is not defined.
I've checked all documentations. It should be supported by dotnet
compact 1.0.

Does anyone has any idea?


Lok
 
D

Daniel Moth

No they never were supported.

You can look at the source for SDF v1.4 (from OpenNETCF) for a replacement.
I have removed this from SDF v2.0 because it was not compatible with the
desktop version and ultimately Pulse is generally not used.

Also check out EventWaitHandle (also in SDF) as you may be able to use it
for working around your requirement.

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top