Vincent Snijders wrote:
>
> And how are you doing that?
>
> In lazarus the following code is used (more or less):
> repeat
> Windows.PeekNamedPipe(PipeHnd, nil, 0, nil, @TotalBytesAvailable, nil);
> if TotalBytesAvailable>0 then break;
> Application.ProcessMessages
> Sleep(10);
> until false;
Shouldn't a sleep(1) or sleep(0) make things more responsive? Giving up the
current time slice is usually enough to make a thread consuming virtually zero
cpu load.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives