[fpc-pascal] why isn't the 'exit' in the finally end clause executed?
Sven Barth
pascaldragon at googlemail.com
Sun Jun 23 19:07:27 CEST 2019
Am 23.06.2019 um 16:33 schrieb Jonas Maebe:
> 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.
It's still the case on current trunk at least on Win64.
Regards,
Sven
More information about the fpc-pascal
mailing list