[fpc-pascal]Destroy Instance

Rimgaudas Laucius rimga at ktl.mii.lt
Wed Jan 29 12:42:49 CET 2003


> Luis Del Aguila schrieb:
> 
> >   b.destroy;             //if destroy the instance .
> >   Writeln(b.campo2);     // Why the instance exist?
> 
> You have to call b.Free instead of b.Destroy to properly destruct the 
> instance.
> 

Free automatically calls the destructor if the object reference is not nil.




More information about the fpc-pascal mailing list