Skip to content

TObservedHook.Destroy

Destroys the observer hook and notifies all observers

Declaration

Source position: fpobserver.pp line 40

public 
destructor TObservedHook.Destroy;  override;

Description

The Destroy destructor ensures proper cleanup by notifying all attached observers that the observed object is being destroyed.

This prevents observers from trying to access a destroyed object and gives them a chance to perform their own cleanup operations if needed.