[fpc-pascal] Generic way to pre-maturely exit TCustomApplication without memory leaks

Bart bartjunk64 at gmail.com
Sun Oct 16 22:07:45 CEST 2016

On 10/16/16, grouchysmurf <d7559b8c502dea1b5323af444e81e014 at grabun.pl> wrote:

>> Probably you can set system.ExitCode before calling Terminate.
> I ended up doing exactly that though it feels like an ugly thoug
> incomplete hack. Thanks for the tip.

Why a hack?
System.ExitCode is meant for returning exitcodes.
an overloaded TCustomApplication.Terminate(AExitCode: Integer) might
be nice to have though.

You could file it as a feature request in the bigtracker.


More information about the fpc-pascal mailing list