Decrements the reference count for the interfaced object's interface.
function _Release: Integer; stdcall;
__fastcall __stdcall int _Release();
___Release implements the IInterface method, ___Release, which decrements the reference count of an interface and returns the current reference count. For some interfaces, when this causes the reference count to drop to zero, the object frees itself.
If the interfaced persistent object has an Owner and that owner supports an interface, then ___Release simply calls the ___Release method of the Owner. Otherwise, it simply returns –1.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!