Sign in Join
FPDoc Onlineexperiment

TInterfacedObject.BeforeDestruction procedure

Member of TInterfacedObjectpublicIn unit System

Check reference count.

Declaration

pascal
procedure BeforeDestruction; override

Description

AfterConstruction overrides the basic method in TObject and adds a reference count check: if the reference count is not zero, an error occurs.

Errors

A runtime-error 204 will be generated if the reference count is nonzero when the object is destroyed.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.