[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TObject.CleanupInstance

Finalize the class instance.

Declaration

Source position: objpash.inc line 132

public procedure TObject.CleanupInstance;

Description

CleanUpinstancefinalizes the instance, i.e. takes care of all reference counted objects, by decreasing their reference count by 1, and freeing them if their count reaches zero.

Normally, CleanupInstanceshould never be called, it is called automatically when the object is freed with it's constructor.

Errors

None.

See also

Destroy

  

TObjectdestructor.

Free

  

Check for Niland call destructor.

InitInstance

  

Initialize a new class instance.