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



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

TInterfacedObject.BeforeDestruction

Check reference count.

Declaration

Source position: objpash.inc line 225

public procedure TInterfacedObject.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

AfterConstruction

  

Handle reference count properly.

Notes

 No notes exist for this page yet. 





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