|
Going back to this, Gary suggested doing something
like this.
while Processing do
begin
Sleep(10);
Application.ProcessMessages;
end;
Processing := True;
// do some things
Processing := False;
This doesn't work. As soon as this procedure
is triggered a 2nd time while it is still executing, it stays in the sleep loop
forever. The "do some things" just pauses in the middle of the code
somewhere. I presume this is because one thread cannot be executing
code in 2 different locations at the same time. So I presume my only
option is to exit without processing the 2nd command or use
threads.
Cheers,
Ross. |
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
