[fpc-pascal] ptop and comma.

Bart bartjunk64 at gmail.com
Mon Feb 24 11:27:29 CET 2020

On Mon, Feb 24, 2020 at 10:11 AM Sven Barth via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

> You are wrong. Halt() sets the error code provided as parameter. Terminate by itself does not.
> Terminate leads to the destructor being called while Halt exists the program in a hard way. But as Tomas wrote, when a program terminates all memory is returned to the OS so that is not really a problem.

If you really dislike the memory leak (since it's not "nice
programming"), maybe you can set ExitCode before calling terminate?
(Untested idea (TM))


More information about the fpc-pascal mailing list