[fpc-pascal] exitproc?

Tomas Hajny XHajT03 at hajny.biz
Tue Aug 5 09:29:42 CEST 2014


On Tue, August 5, 2014 02:00, waldo kitty wrote:
>
> back in the [g]?olden days of TP6, i used to be able to set an exitproc
> procedure that would be executed any time my program exited for any
> reason...
> something like
>
>    exitproc := @myexitproc;
>
> is this still able to be done easily? does it work even if there's an
> untrapped
> exception?

Yes.

Yes, as long as the exception is handled (caught) by the RTL.

Tomas





More information about the fpc-pascal mailing list