I'm testing my plugin in Logic 9 at the moment and I'm having issues with getStateInformation() & setStateInformation() within my pluginProcessor. If I comment their content out, the plugin works fine, but of course it won't reload saved states.
From what I gathered from the demo notes, getStateInformation() is used to store the current state of the plugin into binary, & setStateInformation() is used to retrieve that info & make use of it sometime during the plugins construction. Intuitivly this would make me think that setStateInformation() is called after the plugins construction, & getStateInformation() is called somewhere right before destruction.
Thus I'm consufes that when I uncomment my (bugged) code in getStateInformation() the plugin crashes upon construction.
What I'm ultimately asking is: during a plugins lifetime, when are these functions called?