EhLibSupport wrote:
Hello Luciano
I think it is not correct to Destroy the Form in the OnClose event.
It is better to set the parameter Action := caFree;
Code:
Procedure TForm3.FormClose(Sender: TObject; Var Action: TCloseAction);
Begin
// Action := caFree; // I can't use it that way
Self.Free; // It needs to be this way
Form3 := Nil;
End;
I can't use it the way you mentioned
because my forms are destroyed by reference using a method
I created an example where clicking the button does not generate an error
and in fact there are two bugs in GridEh
one is Focus and the other accessViolation