[fpc-pascal] TProcess does not work in Windows XP

Michael Van Canneyt michael at freepascal.org
Wed Mar 25 11:32:07 CET 2015

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.


More information about the fpc-pascal mailing list