[fpc-pascal] exitcode
Rainer Stratmann
RainerStratmann at t-online.de
Sun Dec 28 19:31:48 CET 2008
Am Sonntag, 28. Dezember 2008 18:59 schrieb Jonas Maebe:
> 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 unit first executes to set the exitcode as early as possible.
> > 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.
That helps me, thanks, Rainer
>
> Jonas
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list