[fpc-pascal] why isn't the 'exit' in the finally end clause executed?

Jonas Maebe jonas at freepascal.org
Sun Jun 23 16:33:07 CEST 2019


On 23/06/2019 09:08, Dennis wrote:
> Using fpc 3.0.4, Lazarus 2.0, the following simple program
> 
> program tryfinally;
> 
> begin
>   try
>     Writeln('before finally');
>   finally
>      Writeln('inside finally. Before Exit');
>      exit; //<----why isn't it executed?
>   end;
>   Writeln('after try finally block');
> 
> end.

I seem to remember this was a bug in the Win64 SEH support that was
fixed later on, but I can't find the bug report.


Jonas


More information about the fpc-pascal mailing list