[Lazarus] send complex command to linux

Andrew Haines AndrewD207 at aol.com
Wed Dec 22 17:50:54 CET 2010

On 12/22/10 04:51, Lukasz Sokol wrote:
> Hi, I know you're not the original author, but...

> // should this 
>>   while Flac.Running or (Flac.Output.NumBytesAvailable > 0) do
>>     PipeOutput;
> // or can this not happen ? And if it can, is it dangerous ?

It's my understanding that when Process.Execute returns, Process.Running
is true. If it's False after Process.Execute is called then it has
already run and exited cleanly or uncleanly which can be checked with

Some more info On TProcess can be found here:

See the "Reading Large Output" section on why it can be important to
read data while the process is running rather than waiting until the end.

Somebody please correct me if I said anything that's incorrect.



More information about the Lazarus mailing list