[fpc-pascal] Generic way to pre-maturely exit TCustomApplication without memory leaks
pascaldragon at googlemail.com
Thu Oct 13 17:12:37 CEST 2016
Am 13.10.2016 15:07 schrieb "Graeme Geldenhuys" <
mailinglists at geldenhuys.co.uk>:
> On 2016-10-13 13:48, Sven Barth wrote:
> > That won't help with Halt() however as that will "jump" directly to the
> > unit finalization, ignoring any and all exception handlers along the
> Wow, that's a bit harsh. Overriding the whole meaning of the
> try..finally language feature. Then I would recommend NOT using Halt()
> for anything - its nasty.
You must not forget that it came from a time when Pascal didn't have
exception handling. Nowadays it's indeed more often than not better not to
use it due to the way it works.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal