OnDecLCLRefcountToZero variable
Event handler signalled when a reference counted LCL component is released.
Declaration
OnDecLCLRefcountToZero: TNotifyEventDescription
OnDecLCLRefcountToZero is a
TNotifyEvent variable which
contains the event handler signalled when reference counted TLCLComponent
instances are released. It is signalled (when assigned) from the
DecLCLRefCount method in TLCLComponent using the component instance as an
argument.
The handler routine is assigned to the variable when the ReleaseComponent method is called in TApplication. It is set to the DoDecLCLRefcountToZero method in the Application. The routine will continue to be called until the LCLRefCount for the TLCLComponent reaches 0. At time, the handler is unassigned and FreeComponent is called.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
