The usage I make of Juce my be a little bit tricky but,
I have a VST host based on Juce and a VST plugin based on the same version of Juce.
Both juce “instances” (from host in one hand, from plug-in in the other hand) are statically linked,
and I have used JUCE_NAMESPACE and JUCE_ObjCExtraSuffix defines with different values to insure that they do not conflict.
Unfortunately, on MacOSX, I get a EXC_BAD_ACCESS error when exiting:
with the following call stack:
I get this error only when an AlertWindow is displayed by the plug-in (for instance, to inform user that an error occured).
If no AlertWindow is displayed, everything works fine.
What is wrong ?
From what I understood, the application may try to release twice the same object.
How to determine the class of this object ?