I have a standalone app that is a vst plugin inside a Juce host. I’m having an issue where my app crashes on exit. I get a EXC_BAD_ACCESS at [NSApp run];
The strange thing though is that this only happens if you quit using the top left ‘x’ button. If you quit with command-q or go to the system menu to quit, there is no crash.
I’ve read that this happens because there are still background processes trying to run that haven’t finished, but I haven’t been able to find a solution and I can’t figure out what is happening with command-q that is not happening with the window close button. They both call the same systemRequestedQuit() method.
I’ve searched for answers and debugged for hours but haven’t made any progress.