Show: Delphi C++
Display Preferences

System.TObject.FreeInstance

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FreeInstance; virtual;

C++

virtual void __fastcall FreeInstance(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
systobj.h
System TObject

Description

Deallocates memory allocated by a previous call to the NewInstance method.

All destructors call FreeInstance automatically to deallocate memory that was allocated by overriding NewInstance.

Do not call FreeInstance directly. FreeInstance should be overridden if NewInstance was overridden to change the way the object's instance data was allocated.

Like NewInstance, FreeInstance uses the value returned from InstanceSize to deallocate the object's memory.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance