Hi Ross,
 
If this is for a TTimer, why don't you just disable the TTimer at the start of the OnTimer method and the re-enable it before you exit?

Regards,
 
Bevan
 
 
----- Original Message -----
From: Ross Levis
Sent: Thursday, May 27, 2004 7:28 PM
Subject: [DUG] Critical Sections

I've never used a TCriticalSection before and the help doesn't help much.  I was wondering if a CriticalSection can be used in the situation of using Application.ProcessMessages and a TTimer.  I know it's usually used with separate threads.  I'm cheating a bit trying to get away from using threads.  I basically don't want the same procedure to be executed while it is currently being executed.  I can do it another way if necessary but just wondering.
 
Cheers,
Ross Levis.


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to