Hello guys, first let me tell you that this library is amazing, really well crafted.
I tried creating some simple plugs for testing and learning dsp, and so far has been a breeze, now i want to create a little more complicated rack.
So im building a small plugin rack, this is a vst that hosts other vsts, so far i had great success using the audioprocessorgraph on my PluginProcessor.cpp prepareToPlay function, i load a simple vst, and it works (juce DBG method is pretty handy there) but how do i handle the editor of this plugin, i tried the plugin host code app, but it seems to use delete this on the closeButtonPressed, and it seems to stack all the pointers in some sort of array, i tried this, but i get awful crashes when closing the parent vst without closing the windows.
So this is what i tried:
Create the editors from the PluginEditor.cpp class, on the constructor i check if the processor is not a null ptr, then i call getWindowFor on PluginWindow, it works (had to remove the static array stuff), but how do i close it, should PluginWindow take ownership of it?
Please ill be very greateful if anyone can point me in the right direction: how should i handle the editors ?