On Tue, Feb 10, 2009 at 11:13 PM, Brad Campbell <b...@wasp.net.au> wrote: > I was trying not to call Application.ProcessMessages as that is *very* > expensive (I'm seeing delays > of up to 100msec on a G4 400) but it looks like I have no choice.
You can use a high resolution timer like EpikTimer ( http://wiki.lazarus.freepascal.org/EpikTimer ) to check if the delay caused by calling Application.ProcessMessages will disturb your communication. Like this: Fetch current time; Application.ProcessMessages if TimeDelay > x ms then do something; -- Felipe Monteiro de Carvalho _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus