getStateInformation() - when is it called on closing a DAW session?

Hi,

i was wondering if there’s any knowledge on when the getStateInformation() method is called on closing a DAW session.

My suspicion for Ableton is that the last call to getStateInformation() happens for all instances BEFORE the first instance destructor is called.

Other DAWs might handle that differently. Does anybody have experience with that?

Best,
N

I really don’t think you can rely on when this is called at all. DAWs are free to call it at any point and even not at all during session close if they think they have the latest state.

What problem are you trying to solve here?

Basically, my plugins communicating with each other, and I need to store/restore certain connections. So I guess I have to make that failsafe regarding the order …