[fpc-pascal] Freeing memory with exceptions

Hairy Pixels genericptr at gmail.com
Wed May 24 14:10:07 CEST 2023


You must have $H+ on and those are AnsiStrings? Why is there exception handling involved with AnsiString? I guess it needs this just in case an exception is thrown somewhere in the call stack?

> On May 23, 2023, at 5:44 PM, Benito van der Zander via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Like take:
> 
> procedure test;
> var s: string;
> begin
>   s:= 'abc';
> end;
> 

Regards,
Ryan Joseph



More information about the fpc-pascal mailing list