[fpc-devel] Need patch for bugs : 0011503 / 0009472
    Michael Van Canneyt 
    michael at freepascal.org
       
    Thu Jun 19 15:14:47 CEST 2008
    
    
  
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.
    
    
More information about the fpc-devel
mailing list