On Thu, 19 Jun 2008, Boian Mitov wrote:
> This is not very precise. You are referring to garbage collection in general. > Reference counting as it used to be defined in the original COM specification > for DLL and statically linked objects specifically states that the object will > be destroyed as soon as the last reference to it is lost. That is exactly what is implemented. Just there is an invisible - to you - reference. You mix explicit with implicit memory management (Flock.Free). The Delphi help warns explicitly against this. (see "Using reference counting") Michael. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel