I was wondering if juce provides some callback or equiv that let’s me code some routines to gracefully shutdown running threads etc.
I can do this from a file -> exit, but i need to catch a system ‘close app’ call, eg, if a user closes the window with the operating system’s windowing manager…
The JUCEApplication object gets a callback when the user tries to quit, or catch DocumentWindow::closeButtonPressed for just a single window being closed…
Don’t get shitty with me or you’ll be off this forum quick as a flash.
And “ha ha ha” back at you, because this isn’t my fault - it’s your own misunderstanding.
Presumably it’s “force quit” you’re pressing, not “quit” (which works perfectly).
And the app gets a SIGTERM in the dispatch loop. Wow, no shit? How exactly did you think “force quit” works? Do you think that perhaps it sends a TERMination SIGnal to the app? :roll: