[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs actions needed when the reference count for a TLCLComponent instance reaches 0 in the application.
Source position: forms.pp line 1592
protected procedure TApplication.DoDecLCLRefcountToZero( |
Sender: TObject |
); |
DoDecLCLRefcountToZero is used in the ReleaseComponent method, and is assigned as the handler routine for the OnDecLCLRefcountToZero event when the LCLRefCount for the TLCLComponent has a value larger than 0.
DoDecLCLRefcountToZero ensures that the global OnDecLCLRefcountToZero handler in lclclasses.pp is unassigned and a call to FreeComponent is queued for asynchronous execution in the application. This is done to prevent an exception that occurs when the component is freed while a previous call to the OnDecLCLRefcountToZero handler is still in process.
Added in LCL version 3.0.
|
Safely destroys a component used in the application. |
|
|
Destroys all components marked for release. |
|
|
The number of references to this component. |
|
|
Event handler signalled when a reference counted LCL component is released. |
Version 3.2 | Generated 2024-02-25 | Home |