[fpc-pascal] Halt() bypassed try..finally block
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Sep 13 11:30:51 CEST 2007
Hi,
Is that correct behavior? When calling Halt() somewhere inside a
try..finally block, it _doesn't_ execute the finally code.
In fpGUI I used Halt() to terminate the event loop and exit a
application. I then noticed that NO cleanup code gets executed after
that call. Not objects get freed via destructors etc... Since I
noticed this, I implemented a more graceful termination process, but
Halt() is really harsh! :-)
Regards,
- Graeme -
More information about the fpc-pascal
mailing list