RAD Studio VCL Reference
TInterfacedObject::_AddRef Method

Implements the IInterface System::TInterfacedObject::_AddRef method.

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

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

System::TInterfacedObject::_AddRef increments the System::TInterfacedObject::RefCount property. 


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