Hi,
I tried to load the exact same VST3 plugin within my own VST3 host (as DLL) and during calling plugView->attached()
the app locks up. I tested that exact scenario within another DAW, where the plugin works fine: 2 UI windows are opened there, but not in my own host yet.
In my own host the first instance is correctly launched on one thread and shows the UI (resizing, side chain, automation parameter, etc tests also succeed). The second instance runs on a separate thread (but within the same process).
When two different plugins are loaded this way, both show up correctly.
When loading the second plugin through IPC in a different process also anything works fine.
I tried to call InitDll only once (should it be called only once in this case?), but no difference.
Also I tried to use IPlugView*
instead of IPtr<IPlugView>
and
WindowController* _controller
instead of WindowControllerPtr& controller
;
with seemingly same result.
Do I need to modify this line:
PluginContextFactory::instance ().setPluginContext (&pluginContext);
when loading more than one instance ?
Vst::HostApplication pluginContext;
is defined as in the editorhost sample
Loading 2 instances of another plugins work fine in this scenario also in my host with the current settings. That plugin also has a separate processor and controller component (as the tested plugin) And also tested with 2 instances of a single component plugin, which also works fine. But with loading the 4th different one as 2 instances it also fails.
Thank you.