[fpc-pascal] Ansistring not being freed on Halt(1)

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Sep 29 12:25:57 CEST 2008


On Mon, Sep 29, 2008 at 11:19 AM, Brad Campbell <brad at wasp.net.au> wrote:
> I'm chasing an issue with a program I have that is leaving an Ansistring
> unfreed on exit. It exists cleanly without using halt(), but this is the the
> only way I've managed to reproduce it.
>
> Should Halt() leave memory unfreed?

I remember from a few months back, I was fighting the same battle.
Halt() is very nasty!  It abruptly stops application execution with no
clean-up as far as I know. Nothing after a Halt() call gets executed.
So I stopped using it.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list