Monitor.Wait() and Pulse() not supported

  • Thread starter Thread starter lsheung
  • Start date Start date
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
 
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
 
Back
Top