Skip to content

TObject.BeforeDestruction

Method called before the destructor is called.

Declaration

Source position: objpash.inc line 235

public 
  procedure BeforeDestruction;  Virtual;

Description

BeforeDestruction is a method called before the destructor is called. It does nothing in the implementation of TObject and must be overridden by descendent classes to provide specific behaviour that is executed before the destructor has finished executing. (for instance, call an event handler)

Errors

None.

See also

Name Description
AfterConstruction Method called after the constructor was called.
Destroy TObject destructor.
Free Check for Nil and call destructor.