Jump to content
TrevorS

Delphi 11.2 FormClose apparently not firing on OSX Version

Recommended Posts

I am getting different behaviour with a FireMonkey project between Windows 32-bit and macOS 64-bit

In the windows version the message shows when I close the form, but not in OSX.

 

I may be being a bad person once again with my form handling, but it all worked a treat in 10.4 with no signs of memory leaks 🤪

procedure TForm1.Button1Click(Sender: TObject);
var
  f : TForm2;
begin
    f :=  TForm2.Create(nil);
    try
      f.ShowModal;
    finally
     f.Free;
    end;
end;

 

 

procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
 showmessage('Form2 FormClose');
end;

 

Share this post


Link to post

Interestingly, I've just created the same simple project in 10.4 and FormClose is being called.

 

 

(RAD Studio 10.4 Version 27.0.38860.1461 )

Share this post


Link to post

Ok, I use 10.4.2 (27.0.40680.4203 ), but most important: the problem is there in the latest Delphi 11.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×