help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TObject.Free

Check for Nil and call destructor.

Declaration

Source position: objpash.inc line 156

public procedure TObject.Free;

Description

Free will check the Self pointer and calls Destroy if it is different from Nil. This is a safer method than calling Destroy directly. If a reference to the object must be reset as well (a recommended technque), then the function FreeAndNil should be called.

Errors

None.

See also

Destroy

  

TObject destructor.

FreeAndNil

  

Free object if needed, and set object reference to Nil

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505