RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComObject.ObjRelease Method

Implements the Release method of the IUnknown interface.

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

ObjRelease is used as the implementation of the IUnknown Release method. It decrements the reference count for the object. If the reference count reaches 0, it automatically frees the object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!