Sign in Join
FPDoc Onlineexperiment

TRefCountedObject.Destroy destructor

Member of TRefCountedObjectpublicIn unit LazClasses

Destructor for the class instance.

Declaration

pascal
destructor Destroy; override

Description

Destroy is the overridden destructor for the class instance. It ensures that resource allocated in the constructor are freed before freeing the class instance. Destroy calls the inherited destructor prior to exit.

Errors

Destroy raises an EAssertionFailed exception if RefCount has a non-zero value when the method was called.

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