TObject.Done
Destroy an object.
Declaration
Source position: objects.pp line 289
default
destructor Done; Virtual;
Description
Done, the destructor of TObject does nothing. It is mainly intended to be used in the TObject.Free method.
The destructor Done does not free the memory occupied by the object.
Errors
None.
See also
Name | Description |
---|---|
TObject.Free | Destroy an object and release all memory. |
TObject.Init | Construct (initialize) a new object |
Example
program ex8;
{ Program to demonstrate the TObject.Done call }
Uses Objects;
Var O : PObject;
begin
// Allocate memory for object.
O:=New(PObject,Init);
O^.Done;
end.