[fpc-devel] ref count issue with out param

Martin Frb lazarus at mfriebe.de
Sat Jun 13 16:42:34 CEST 2015

On 13/06/2015 15:18, Florian Klämpfl wrote:
> Foo2(a1[i],a2[j])
> a1, a2 being dyn. arrays, but sharing data, i and j having the same value.

I dug out my old "turbo delphi".

In all both cases (my original example / you dyn array example) Delphi 
passes nil for the normal parameter, and fpc passes a dangling pointer.

More information about the fpc-devel mailing list