ModalResult let Application Close/Crash lazarus / 21-General ---------------------------------------------------------------------- dietmar · 2021-08-01 12:32 Hello, I have a button on the main form which opens a bsdialog modal form: frmTest.ShowModal; If the ModalResult of the OK-Button on the modal form is mrNone, nothing happens (as expected). As soon as I set that to mrOk, the form closes (what is ok), but then the application immediately terminates without any error. I tried to debug with F7/F8, which led to strange assembler tracings and finally let Lazarus crashes completely! Any ideas what's going wrong here? Thx --Dietmar ---------------------------------------------------------------------- dietmar · 2021-08-01 19:07 You are right - I forgot to create it first. Sorry for bothering... --Dietmar