I’ve used a DialogWindow to create a preferences panel for my application. In this panel there is one tab which shows data coming in from a piece of external hardware, which is being polled on a thread. It then uses some sliders to show the incoming values.
I’d like to create a MessageManagerLock to lock the application’s thread out while I am updating the sliders, but when I create a MessageManagerLock object, it gets stuck trying to create the lock. I think it might have something to do with the window always being on top. I was thinking that so long as an always on top window is being shown the main application thread won’t relinquish control to another thread. In any case this problem is a bit irritating, because if I don’t create a lock, Juce throws an assertion error when I’m in debug mode.
Does anyone have any suggestions about what I could do to either make this lock work or alternatively how I could disable that particular assertion error?