[Lazarus] Exit Status of Lazarus App

David Copeland david.copeland at jsidata.ca
Thu Mar 21 14:42:20 CET 2013


On 03/21/2013 09:37 AM, 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.
>
I was worried about that also, like freeing memory. I believe that the
IDE itself can return a "restart" status to startlazarus, but I can't
find it.






More information about the Lazarus mailing list