[fpc-pascal] Freeing memory with exceptions

Benito van der Zander benito at benibela.de
Wed May 24 13:00:04 CEST 2023


Hi,

> 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)

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


Sincerely,
Benito
On 24.05.23 10:14, Marco van de Voort via fpc-pascal wrote:
>
> On 23-5-2023 12:44, Benito van der Zander via fpc-pascal wrote:
>> Hi,
>>>
>>> Depends on your code. 
>>
>>
>> I wrote all my code in Delphi 4. From 1998 or so. I do not make new 
>> projects, only maintain old ones.
>>
>> Delphi 4 felt much better.
>>
>> Like take:
>>
>> procedure test;
>> var s: string;
>> begin
>>   s:= 'abc';
>> end;
>
>
> 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.
>
>
> _______________________________________________
> fpc-pascal maillist  - fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230524/3f9b61f3/attachment.htm>


More information about the fpc-pascal mailing list