RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInterfacedObject::_AddRef Method

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

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