TrevorS 3 Posted September 30, 2022 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
Hans♫ 75 Posted October 3, 2022 If you close the modal window with the red button in the title bar, then FormClose and FormCloseQueury are not called on MacOS. However, this problem was also there in Delphi 10.4, so it might not be the same issue you are facing. I recently reported this bug here: https://quality.embarcadero.com/browse/RSP-39547 Share this post Link to post
TrevorS 3 Posted October 4, 2022 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
Hans♫ 75 Posted October 5, 2022 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