How to turn off the event management system?

I want to write a program in juce which does background processing on some files, much like a batch program. I am using AudioTransportSource in this but am getting assertions due to MessageManager.instance being 0. Is there a way to turn off the event management system?

Well, no, not if you want to use classes that rely on it - if there are assertions, then they’re happening for a good reason! Why not just leave the event system running? It doesn’t do any harm.