FireDAC.Stan.Util.FDFree

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FDFree(AObj: TObject);

C++

extern DELPHI_PACKAGE void __fastcall FDFree(System::TObject* AObj);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Stan.Util.pas
FireDAC.Stan.Util.hpp
FireDAC.Stan.Util FireDAC.Stan.Util

Description

Destroys an object and frees its associated memory, if necessary.

Use Free to destroy an object if the object reference is not nil. The behavior differs for ARC and non-ARC platforms:

  • ARC--the method calls the DisposeOf method.
  • non-ARC--the method calls the Destroy destructor.

Warning: AObj must be an instance of a TObject descendant.

See Also