My app quits instead of closing

In my “Close” submenu, I put “Self.Close” followed by “return true”, however the application exits (once out of two displaying an error) instead of simply closing the main window. For what ?
thank you for your suggestions.

Do you use „AllowAutoQuit“ in the App.Opening Event? Then the app would exit if the last window is closed……


Are-you running Windows ?

If so, read the previous entry and act accordingly. This is the default behavior on Windows (Linux ?).

What error do you get?
What OS are you using?
Do you have a sample app that has the problem that you can share?

1 Like

What is the error you see?

I’m (He’s) Only Sleeping…

I found, I had left a “Quit” command lying around in the Window.Close() event!