[fpc-pascal] Memory leak
dhkblaszyk at zeelandnet.nl
dhkblaszyk at zeelandnet.nl
Sun Dec 18 16:03:26 CET 2011
On 18 dec '11, Jonas Maebe wrote:
> On 18 Dec 2011, at 15:45,
dhkblaszyk at zeelandnet.nl [1]wrote:
>
>> It was an ansistring indeed,
and finalize did the trick! Thanks for your help. How does New and
Dispose work btw? Do they use RTTI to call finalize appropriatly?
>
>
Yes.
>
>> I tried searching the New and Dispose implementations in the
RTL sources, but I just could not find them. What unit are they in?
>
>
They are compiler internals. The compiler translates them into an
appropriate combination of getmem/initialize or
finalize/freemem.
Thanks Jonas, that makes things more clear for me.
Regards, Darius
Links:
------
[1]
mailto:dhkblaszyk at zeelandnet.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111218/56113a22/attachment.html>
More information about the fpc-pascal
mailing list