[fpc-pascal] Where and Why is there a memory leak?

Marcos Douglas B. Santos md at delfire.net
Wed Sep 6 12:33:43 CEST 2017


On Wed, Sep 6, 2017 at 6:55 AM, Graeme Geldenhuys <
mailinglists at geldenhuys.co.uk> wrote:

>
> I can't remember ever [while using Delphi] being forced to implement a
> getter method in the "property ... implements..." line, but it seems that
> is the only way it remove memory leaks under FPC. Weird. :-/


You don't need this getter. You have resolved just by change FHookInstance
as a class, not an Interface, plus using TAggregatedObject too.

I wrote an article about it
http://objectpascalprogramming.com/posts/interfaces-delegacao-problemas-solucoes/

(use Google Translator).

Best regards,
Marcos Douglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170906/749c5e14/attachment.html>


More information about the fpc-pascal mailing list