+ Strange Windows behaviour. Count=0 is now checked.

This commit is contained in:
michael 2000-02-14 12:43:48 +00:00
parent 8a55e43184
commit 2c33709a7e

View File

@ -16,13 +16,13 @@ Var S : TProcess;
I,Count : longint;
begin
S:=TProcess.Create(theprogram,[poExecuteOnCreate,poUsePipes]);
S:=TProcess.Create(theprogram,[poExecuteOnCreate,poUsePipes,poNoConsole]);
Repeat
Count:=s.output.read(buf,BufSize);
// reverse print for fun.
For I:=Count downto 1 do
write(buf[i]);
until Count<BufSize;
until Count=0;
writeln;
S.Free;
end.