I'm having a hard time implementing notifications to the GUI thread.
On AAX setStateInformation is called from a thread other then the GUI one. So after loading all the data I have to tell the GUI to load this.
At first I tried to use MessageManager::callFunctionOnMethodThread() but it deadlocked on message->finished.wait(). Then I tried to inherit from MessageListener in the MyAudioProcessorEditor and use postMessage. But the message is never passed to handleMessage(). I figured out that the same is true for callFunctionOnMethodThread(), the code passed in there is just never reached.
To complete my confusion we have a simple UpdateCheckerThread that just pulls a XML file and checks for updates. When an update is found it uses MessageManager::callFunctionOnMethodThread() to show a pop-up informing the user.
So why is one working and the other one isn't? What am I making wrong here?
Thanks in advance