Re: [fpc-pascal]Destroy Instance

2003-01-29 Thread Rimgaudas Laucius
> 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 referenc

Re: [fpc-pascal]Destroy Instance

2003-01-28 Thread Andrew J.Swan [home]
* Luis Del Aguila [LDA] [Tuesday, January 28, 2003] wrote: * subject: [fpc-pascal]Destroy Instance * msgid:00af01c2c6fb$8a85a320$491e30c8@mesajil LDA> Type LDA> TClase1 = Class LDA> campo1:string; LDA> End; LDA> TClase2 = Class (TClase1) LDA> campo2:string; LDA> End; LDA> Var b:Tc

Re: [fpc-pascal]Destroy Instance

2003-01-28 Thread Sebastian Günther
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. And don't forget that the destruction will free the memory, but not override it wi