For some reason when I run the JucePluginHost with a juce plugin application, if I close the plugin host, it first gives this error message:
*** Leaked objects detected: 2 instance(s) of class Message JUCE Assertion failure in juce_leakedobjectdetector.h:90 AudioPluginHost.exe has triggered a breakpoint. *** Leaked objects detected: 1 instance(s) of class AttributeList JUCE Assertion failure in juce_leakedobjectdetector.h:90 AudioPluginHost.exe has triggered a breakpoint.
And this happens even if I start a complete new juce plugin project with no changes(only that default hello world text).
How can you remove these errors? And also, is there a way to know which line of code contains the pointer which caused the memory leak as atm I don’t know anyway to debug this problem on my own.
SOLUTION: I found out why I got the error. First of all the leaks come from the Juce AudioPluginHost, that explains why despite creating a brand new vst plugin project, I still get the memory leaks. Therefore this basically means you don’t have to worry about those leaks at all for your plugin. Now the reason the AudioPluginHost does that is: some external vsts aren’t fully supported. I had RealGuitar vst by MusicLab in the host(used as an audio input to test my effect plugins), and as soon as I removed it, the errors stopped happening.