Show: Delphi C++
Display Preferences

System.Classes.TComponent._Release

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

function _Release: Integer; stdcall;

C++

int __stdcall _Release();

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Called when an application releases a component interface.

_Release is a basic implementation of the IInterface method, _Release.

_Release returns the resulting value of the reference count for the component's interface.

Note: In all other cases, _Release simply returns –1 and takes no action. This allows the component to implement interfaces where reference counting is not required. More sophisticated components should override _Release to implement reference counting.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance