[fpc-devel] TProcess change.

Vincent Snijders vsnijders at quicknet.nl
Wed Dec 13 13:15:19 CET 2006


Michael Van Canneyt schreef:
> Hello,
> 
> I've changed the TProcess.WaitOnExit return type to boolean;
> A return value of True means success, a return value of False
> means failure.
> 
> This is a conscious break with the old DWord return value, which
> returned a highly inconsistent, system-dependent return value.
> The current solution is consistently cross-platform.
> 
> I regret if this breaks any code, but you can make the code
> consistent with older code if you do a 
> 
>   MyRes:=Ord(WaitOnExit);
> 
> This should compile with old and new versions of FPC.
> (The old return value was useless anyway)
> 
> The documentation has been adapted, but is not yet published.
> 

I regenerated the docs and noticed that TProcess.WaitOnExit.Result has not been updated:

http://lazarus-ccr.sourceforge.net/docs/fcl/process/tprocess.waitonexit.html

Vincent



More information about the fpc-devel mailing list