Crashes when I use removeParameterListener for an additional AudioProcessorValueTreeState

Hello!
I’m using an additional AudioProcessorValueTreeState for private parameters that the host should not see, but when the application is closed, a crash occurs in the destructors of my audio processors, at the moment when apvtsPrivate.removeParameterListener is called. All audio processors are within an AudioProcessorGraph. I suspect the issue is that apvtsPrivate is already deleted when the audio processor destructors are invoked. I’m unsure how to destroy them beforehand. Attempting to call the clear() method on AudioProcessorGraph or Node AudioProcessorGraph doesn’t trigger the destructors of audio processors.

Can anyone advise on the optimal usage of an additional AudioProcessorValueTreeState in conjunction with AudioProcessorGraph? Or perhaps suggest a better solution for private parameters?

Thanks in advance for any insights!


"

I discovered a problem — I needed to declare APVTS objects in a different order. :smiley:

1 Like