alphax wrote:
> 
> It seems a bug in FPC 2.0.0.(Delphi 7.1 also has this bug)
> 
> Assumes there is an object(not class) declaration, the object has a 
> IInterface field. If we declare another object derive from it, in the cleanup 
> procedure of that decendant leak to clear the IInterface references.

Delphi has the special "feature" that dynamic members (AnsiString...)
are initialized and finalized only for base class objects, not for
derived objects. As a rule of thumb: only use Object with old (TP) data
types.

DoDi



_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to