[fpc-pascal] Freeing memory with exceptions

Marco van de Voort fpc at pascalprogramming.org
Wed May 24 13:10:29 CEST 2023

On 24-5-2023 13:00, Benito van der Zander via fpc-pascal wrote:
>> It is weird that your code calls setjmp? Are you using a non Windows 
>> platform?  Comparisons with Delphi should be done on Windows where 
>> the exception systems match. Apples to Apples please.
> It is FPC on Linux.
> And Delphi 4 on Linux (in WINE)

Then also run FPC/win32 in wine for a real comparison.

>  Even if it wants to do the Linux nonsense, FPC could at least inline 
> fpc_setjmp in fpc_pushexceptaddr to make it only one function call.
> I regret installing Linux. Everything worked better with Windows 98 
> and Delphi 4

These kinds of statements are counter-productive.

More information about the fpc-pascal mailing list