Luis Del Aguila schrieb:
You have to call b.Free instead of b.Destroy to properly destruct the instance.b.destroy; //if destroy the instance . Writeln(b.campo2); // Why the instance exist?
And don't forget that the destruction will free the memory, but not override it with some initialization value; so it is possible that b.campo2 will still hold a value.
- Sebastian
_______________________________________________
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal