System.TInterfacedObject._Release

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

function _Release: Integer; stdcall;

C++

int __stdcall _Release(void);

Properties

Type Visibility Source Unit Parent
function protected
System.pas
systobj.h
System TInterfacedObject

Description

Implements the IInterface_Release method.

Do not call the protected __Release method directly. __Release is called through the IInterface interface to indicate that another object finished working with the interfaced object's interface pointer. This allows the interfaced object to free itself when it is no longer used (when the reference count becomes zero).

__Release decrements the RefCount property.

See Also