Dear Community,
Please help. Create VST Plugin using Projucer. Add a TextEdit to the AudioProcessorEditor:
class TestVstpluginAudioProcessorEditor : public AudioProcessorEditor
{
public:
TextEditor m_TextEditor;
TestVstpluginAudioProcessorEditor(TestVstpluginAudioProcessor &processor) : AudioProcessorEditor(&processor), m_Processor(processor)
{
setSize (400, 300);
addAndMakeVisible(m_TextEditor);
}
~TestVstpluginAudioProcessorEditor()
{}
void paint(Graphics &g) override
{
g.fillAll (Colours::white);
}
void resized() override
{
m_TextEditor.setBounds(10,10,100,20);
}
private:
TestVstpluginAudioProcessor &m_Processor;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TestVstpluginAudioProcessorEditor)
};
Run host (Cubase in my case), open plugin’s Editor. Click TextEditor so it gets keyboard focus. Press Cmd+Q. Result: Plugin crashes on exit… I’ve tried many versions of Juce including latest, many versions of MacOs including latest.
Thank you