Unit 'Objects' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TObject.Done

Destroy an object.

Declaration

Source position: objects.pp line 291

destructor TObject.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

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 : Objectate the Objectcall }

begin
  // Allocate memory for object.
  O:=New(Object;
  O^.Done;
end.

Documentation generated on: Nov 23 2024