Michael Van Canneyt wrote:

On Wed, 8 Feb 2006, Micha Nelissen wrote:

How can I know whether a TProcess failed when trying to execute it ?
Running will be false, but I want to distinguish between the file not
there / no execution permission / etc. and it started running but was done
quickly.

It should raise an exception if execution fails ?

That I should have noticed :-). In unix, the return result of the 'fpexecve' call is not checked, at least. If it returns, it does 'halt(127)', so should I check the ExitStatus being 127 ?

Micha

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to