[fpc-devel] performance tests: reference counted vs non-reference counted

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Nov 16 13:27:50 CET 2007


On 16/11/2007, Luiz Americo Pereira Camara <pascalive at bol.com.br> wrote:
>
> A single program like the below leaks memory. To the  object be freed
> automatically is necessary to declare Obj as IUnknown.
> I wonder if your test is leaking memory.

That was an oversight, thanks!  Point taken, I was using interfaced
objects incorrectly.

Yet in the last few test modifications, I explicitly free both
Reference Counted and non-Reference Counted objects, so that shouldn't
cause memory leaks.


With all these tests, we have cleared up a few issues.  One still
outstanding is why TInterfacedObject performs better that TObject
using FPC?


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list