Juce Plugin Hosting Another Plugin


As the subject implies, my Juce plugin loads and hosts other AU/VST plugins. This works fine so far, except for the GUI part, which is yet a bit unstable. I can’t seem to find a reliable way to embed the inner plugin’s editor inside my outer plugin’s user interface.

I’ve added a generic (empty) component to my UI that is supposed to accept the inner plugins’s editor as a child component. However the inner plugin’s editor sticks to a fixed location on the desktop and does not move with the outer editor. There are also thread deadlocks happening when the inner plugin attempts to open a native OS dialog (Yes/No/Cancel, on a Mac, Pause and Continue in the debugger heals the deadlock).

Something with my whole approach is probably wrong. What is the best way to embed the editor of a plugin inside another?