>
> 1. Do not use CopyFrom on a non-seekable stream such as a pipe (which is
> used to capture output in TProcess).
> this is documented:
> https://www.freepascal.org/docs-html/rtl/classes/tstream.copyfrom.html
>
>
> 2. Do not use the poWaitOnExit flag. When the program you start outputs
> more
> data then the size of the OS pipe buffer then it will be blocked waiting
> for
> you to free the pipe buffer, while you wait for it to finish.
I'll supplement the answer above with a link to a good article about this:
https://wiki.freepascal.org/Executing_External_Programs#Reading_large_output
_______________________________________________
fpc-devel maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel