Sign in Join
FPDoc Onlineexperiment

TProcess.ExitStatus property

Member of TProcesspublicIn unit Process

Exit status of the process.

Declaration

pascal
property ExitStatus: Integer read GetExitStatus;

Description

ExitStatus contains the exit status as reported by the OS for the process when it stopped executing: Normally, this is the exit code of the process.

The value of this property is only meaningful when the process has finished executing. If it is not yet running then the value is -1. (it was zero in earlier versions of FPC)

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.