Mac restart is canceled when Juce app is running

Hello,

Found this in OS 10.6.4 - If I have the Juce demo running, go to the Apple menu and select “Restart”, the Juce demo quits, but an alert comes up that says the Juce demo canceled restart. I have to choose “Restart” again to actually reboot the machine. Setting a breakpoint shows that the alert is thrown before JUCEApplication::shutdownAppAndClearUp( ) is called, but I wasn’t able to narrow it down any further. This was using a fairly recent version of the tip, but not the absolute latest.

Has anyone else seen this? I’m getting the same behavior in our application and wondered if there is a way to get around it.

ok, try the tip now, I think I’ve sorted that out.