I’m trying to use getStateInformation and setStateInformation in order to save and load parameter settings between user sessions, via data written to an XML file. However, any code that I put into the setStateInformation method is never reached. getStateInformation is being called appropriately, so I’m wondering if I am missing something obvious about how setStateInformation was intended to be used. When is the setter function supposed to be called, and what issues might cause it to be ignored?
I’ve tried setting JUCE_VST_RETURN_HEX_VERSION_NUMBER_DIRECTLY=1, as was recommended on this thread. However, this didn’t change any of the current behavior. I’m running JUCE 4.2.1 on Windows 7, and using Visual Studio 2010.