RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument._Release Method

Called when an application releases a component interface.

Pascal
function _Release: Integer; stdcall;
C++
__fastcall __stdcall int _Release();

__Release is a basic implementation of the IInterface method, _Release. 

__Release returns the resulting value of the reference count for the component's interface.

Note:
In all other cases, __Release simply returns –1 and takes no action. This allows the component to implement interfaces where reference counting is not required. More sophisticated components should override __Release to implement reference counting. 

 

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