Thank you ver much, however I still cannot sort out the problem. Probably its a very trivial thing but I am a newbie.
I think that the AudioProcessor class was correctly declared:
class MyAudioProcessor : public AudioProcessor,
Then in the editor constructor I wrote:
MyAudioProcessorEditor::MyAudioProcessorEditor (MyAudioProcessor* ownerFilter)
// Register change listener after initialisation
In the destructor i tried (with no success):
But while ownerFilter in the constructor has the removeChangeListener() method, getAudioProcessor()-> does not.
By the way, I am confused about the "lifetime cycle" of a listener. Is the removeListener() always mandatory in the destructor? To be clearer should I always call a removeListener() in the destructor if an addListener() call was present in the constructor?
Is there any way to make the above code cleaner and remove all the listeners that have been created (the ones associated with the slider, the buttons and the filter) at once?
Thank you again