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 Process.ExitStatus. Some more info On TProcess can be found here: http://wiki.lazarus.freepascal.org/Executing_External_Programs 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. Regards, Andrew -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
