Checks that the reference count is zero before allowing the interfaced object to be destroyed.
procedure BeforeDestruction; virtual; override;
virtual __fastcall BeforeDestruction();
System::TInterfacedObject::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!