RAD Studio VCL Reference
TInvokableClass._AddRef Method

Implements the IInterface _AddRef method.

function _AddRef: Integer; stdcall;
__fastcall __stdcall int _AddRef();

Do not call the protected __AddRef method directly. __AddRef is called through the interface to indicate that another object is using the invokable object's interface pointer. When the other object is through with the interface, it calls _Release through the same interface. This allows the invokable object to free itself when it is no longer used (when the reference count goes to zero).  

__AddRef increments the RefCount property. 


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