On 21-3-2013 14:37, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> On 21-3-2013 14:23, David Copeland wrote: >>> Hi, >>> >>> How can I set the exit status/return code of a Lazarus application? I >>> have done some searching but haven't found it. >> >> IIRC, I think it's halt. >> >> There might be a fancy lazarus way of doing it (have a look at the >> application object...) > > If halt (with a parameter) is called, are there any bits of normal > termination that get skipped? I use it during startup if there's some > obvious problem (e.g. a socket can't be created) but I was wondering a > few days ago how best to set a result during routine shutdown. >
AFAIR (again) the docs say halt just unceremoniously exits, skipping any application finalization etc. That's why I suspect the application object may have some property that sets the exit code or some such... -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
