App crashes on Windows after OS stops audio device


I’m using a brand new Windows laptop with latest version of JUCE.

Anyway… I have my app running and walk away to make some coffee, and when I come back to the computer I can see that an exception has been thrown from JUCE. It seems that perhaps the operating system stopped the audio device for some unknown reason and then this triggered some type of negative reaction to my code and/or JUCE.

I have attached some screenshots that show what was happening in Visual Studio.