System.Win.ComObj.TComObject.ObjRelease
Delphi
function ObjRelease: Integer; virtual; stdcall;
C++
virtual int __stdcall ObjRelease();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TComObject |
Description
Implements the Release method of the IUnknown interface.
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.