[fpc-pascal] try..finally vs interfaces performance

Luiz Americo Pereira Camara luizamericop at gmail.com
Thu Apr 14 22:45:23 CEST 2016


2016-04-14 10:58 GMT-03:00 Graeme Geldenhuys <mailinglists at geldenhuys.co.uk>
:

> On 2016-04-14 14:15, Marcos Douglas wrote:
> > because you gain more than just automatic memory release.
>
> It is also worth noting that not all Interface usage means “automatic
> memory release”. If you use COM-style Interfaces, then yes you get
> memory management.


Not necessarily, you can use COM interfaces with TComponent or other class
that implements addref method but does not automatically frees the instance
when refcount is zero

Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160414/a137e8df/attachment.html>


More information about the fpc-pascal mailing list