On 28 Dec 2008, at 18:16, Rainer Stratmann wrote:

Where is the earliest position to set the exitcode?

What do you mean with "position"?

Which exitcode does the program generate if an error occurs?

Depends on the error. It's the same as the run time error number for that fault, see http://www.freepascal.org/docs-html/user/userap4.html

For example a seg fault.

214 or 216, depending on the operating system and the kind of "segfault" (some report them as bus errors, some as segmentation faults). It seems however that it's not documented that run time error 214 can also mean bus error.


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

Reply via email to