Event onComponentDeleting

We always get an access violation when removing Woll2Woll components from the Scripter IDE.

Question:

Is there an event in the TIDEEngine that triggers when a component is removed in the IDE?

For example:

procedure TForm1.IDEEngineComponentDeleting(Sender: TObject;

Component: TComponent);

begin

// Triggered BEFORE a component is deleted

if Component is TwwDBEdit then

begin

// Cleanup code for Woll2Woll components

TwwDBEdit(Component).DataSource := nil;

TwwDBEdit(Component).Parent := nil;

// Debug output
OutputDebugString(PChar(‘Component is being deleted: ’ + Component.Name));

end;

end;