RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInterfacedPersistent._Release Method

Decrements the reference count for the interfaced object's interface.

Pascal
function _Release: Integer; stdcall;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!