I thought as much.  I'll do something similar to what Gary suggested.  Thanks all.
 
Ross.
----- Original Message -----
Sent: Thursday, May 27, 2004 8:08 PM
Subject: Re: [DUG] Critical Sections

Ross,
  I think that if you are trying to prevent re-entrancy, you are s**t out of luck.
 
  A critical section will stop access to the same bit of code by 2 separate threads, but if you're just using the main VCL thread, then the CriticalSection will let you in 'coz its in the same thread context.
 
  You need to use some other kind of semaphore.  A boolean const is a good candidate (as long as you have writeable consts on).
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to