RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClass.BeforeDestruction Method

Checks that the reference count is zero before allowing the interfaced object to be destroyed.

Pascal
procedure BeforeDestruction; override;
C++
virtual __fastcall BeforeDestruction();

BeforeDestruction is called automatically immediately before the interfaced object's destructor. It checks that the reference count is zero, and, if it is not, raises an exception. 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!