System.Classes.TComponent._Release
Delphi
function _Release: Integer; stdcall;
C++
int __stdcall _Release(void);
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.