void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
{
XmlElement* const xmlState = getXmlFromBinary(data,sizeInBytes);//working with xml here
setCurrentProgram(xmlState->getIntAttribute(S("currentProgram"),0));
dispatchPendingMessages();
delete xmlState;
}
The problem is - when i remove dispatchPendingMessages call - the GUI is not updated in energyXT2.6 . No problems in other hosts.
setCurrentProgram sends some messages to GUI thread through changeListener.
I am not sure why those messages are not delivered.
Full source available at : https://github.com/2DaT/Obxd