I’ve joined a project that uses Juce heavily. In one application, there is an odd problem. Sometimes, quitting the program by command-Q (Mac), the program crashes - but quiting by pressing ESC causes no crash. We use Juce version 1.21.
I won’t post any code, because the project is huge, and the reason I ask, is because I haven’t pin-pointed any bugs yet. Maybe there is a problem with this specific distribution of Juce…?
You’re probably just doing something daft like deleting your main window twice - have a look at the way the demo app or the jucer handles quitting. Surely it’s obvious what’s going wrong from debugging the crash?
That’s an assertion, not a crash! And it’s you that it’s referring to - it’s warning you that you’ve quit without deleting one of your top-level windows, so have probably got a memory leak. (Maybe I’ll rephrase the warning to make it a bit clearer!)