gogins / csound-vst3-opcodes

The "vst3" opcodes enable Csound to host VST3 plugin instruments and effects.
GNU General Public License v3.0
5 stars 2 forks source link

Plugin shell is not staying alive #1

Closed gogins closed 4 years ago

gogins commented 4 years ago

I have created a vst3_plugin_t class based on the VST3 SDK hosting sample applications.

I can call IComponent and IEditorController methods immediately after creating an instance of this class. Later however any such call causes a segmentation fault. Evidently something is causing the objects implementing both IComponent and IEditorController to be released and destroyed.

I have proved that this is not caused by storing the vst3_plugin in a shared pointer.

gogins commented 4 years ago

Got past this by making the Module and the PlugProvider both IPtr.