Upgraded to 2026V2.1 Quit doesn't respond

Can anyone help please?

I’ve just upgraded to 2026V2.1 and app Quit doesn’t respond in the IDE. I’ve tried adding a menu handler for FileQuit that just says Quit, doesn’t work. I’ve tried restarting Xojo and my computer, nothing works.

I’ve put a breakpoint in the apps CancelClosing event, never reaches it. I put a breakpoint in the app’s MenuBarSelected event it goes through that but no further.

I’ve no idea where to even start investigating this since it’s an automatic function.

I’ve created a dummy app (New Desktop App and Run) and it works fine. I compiled another app under 2.1 and it works. But, as I said, I’ve no idea how to go about investigating this.

I’ve reverted to V2 and it works.

Help, please. Jack

It works here. What type of project is this (Desktop, Android, iOS, Web)? What does your Quit code actually look like? What platform are you using for testing (Windows, macOS, Linux)?

If you are API 2 is your menu item a DesktopQuitMenuItem? The API 1 to API 2 converter used to get it wrong. Do you have any code in the quit menu handler? If you return true then you are signalling that you have processed the event and Xojo needs not process it further.

Do you have an active try block that captures all RuntimeExceptions. If so you need to allow ThreadEndException and EndException to be re raised to allow application shutdown.

The app was written for MacOS. It is a new app and written in API2.

I put a breakpoint in the first statement in the CancelClosing event and it never reaches it.

Any thanks for your feedback. I deleted the menu item and reinserted it and that seems to have solved the issue, whatever it was.

Thanks again.

Historically, changing the name of certain menu items caused problems. Cut, Copy, Paste, Undo for example. Changing the name stopped text field clipboard actions from working.

Changing nothing in my project, but I had the same with a debug run with Xojo 2026r2.1.

It may be related to my OS (Tahoe 26.6, I was unable to update to 26.6.1) as I have some troubles recently (the last to date was an automatic reboot while I asked a shut down !).

I booted on special utilities and run Disk Utilities. On shutdown, it shut down, and after a standard reboot, without launching an app, shut down… shut down.

What happens ? I do not now.

Surprise: the update to Tahoe 26.6.1 was applied…
Now, I have troubles with GIMP ! (Open with does not works as well with Paste, …).

LBN: This is a bug in GIMP when you use a second monitor… at “Import” time, a window opens and ask some questions… in the other screen; not the one who have the Menu Bar !
I forgot about that since I cannot use the second monitor everywhere.
Now, I can continue what I was doing with GIMP !

My computer seel as sick as I am !

Thank you! I had an app with a DesktopMenuItem instead of a DesktopQuitMenuItem and your answer fixed it.

Great news. Early betas of 2026 r1 would crash on quit with that configuration, happily that was fixed.

Seems sometimes the Quit menu is DesktopMenuItem and it have to be changed to DesktopQuitMenuItem, after that it works!

AS I wrote in this Forum, somewhere.

PS: in the OLD time, people sed this acronym as answer: RTFM. Nowadays, avoid to use it. But there are more people who do not read the (bad) documentation. :(§

Now the acronym can be changed to RTFF ? :wink: