I have searched into forum for this problem but do not find something so I am sharing it to us.
First of all, here is the environment : I launch a JUCE GUI application, using JUCE AudioProcessor wrapped as VST.
Here the problem comes :
- I search for plugins in a directory, scan for them with PluginListComponent
- When it scans, instance of plugin is created as ScopedPointer, and launch a initialiseJUCE_GUI()
- When scan is done, the pointer to instance is deleted (cause it is a ScopedPointer) and calls for shutdownJUCE_GUI()
- All my application closes itself because of that last call to shutdown…
Do you see where the problem is… Do you have a solution ?
Best regards !