[fpc-pascal] When does a reference counted object get freed automatically, and when not?

Marco van de Voort marcov at stack.nl
Sun Aug 11 01:12:54 CEST 2013


In our previous episode, Howard Page-Clark said:
> 
> var i1, i2: TSortableInteger;

_INTERFACES_ are refcounted, not classes. And these are class references.

Change it to ISortableInteger, remove the free, and it will work fine probably.



More information about the fpc-pascal mailing list