i have a Plugin that stores a specific ID for certain purposes in the plugins MemoryBlock. Now consider the following steps:
- start Pro Tools (12.8.2 Developer)
- create an empty session
- create a track and add a plugin instance
- create a new empty session
- again, create a track and add a plugin instance
Now, i’d expect that nothing should be restored in the new session when
setStateInformation is called. Instead, the ID stored in the first session gets restored.
This seems to be rather annoying … is there an explanation for this behaviour, and can it be changed ?
EDIT: It seems that, when i start with a clean slate, the add two instances, the second instance loads the memory block of the first instance, which is probably related and equally annoying.