I’m having some trouble with a MessageManagerLock. I’m following the instructions in the documentation (const MessageManagerLock wrapUpTasks, near the end of the function, as little code as possible after it).
It works as far as skipping the assertion when calling component methods (Vu and clip LED updates), but causes a crash when I close the window and reopen it, and playback stops during redraw or when using a combo box.
The Lock is in processBlock - is that a nono? It’s after all the for loops and heavy processing, and should just pop off the stack pretty quickly.
What did I do wrong? Besides majoring in music instead of software development!
me.upAllNightCoding(true);