On Wed, 25 Mar 2015, Antonio Sanguigni wrote:
Once more:
Zero is a valid return value for read from a pipe.
So it can perfectly be that read attempts 50 times returns 0, and only at
read attempt 51 you get a positive result.
That is why you must check isRunning, and not rely on the return value of
readbytes.
Thank you, this is my new code and while it's working good on Windows
7 it doesn't on Windows XP :(.
procedure TBurpClient.Run;
begin
fOurProcess.Options := [poUsePipes] + [poNoConsole];
Following the suggestion by Pierre:
Try adding [poStderrToOutPut] as well.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal