This is my first JUCE project. I would like to create a resizable AudioProcessorEditor window.
In my PluginEditor.h file I have created the following private pointers:
ResizableCornerComponent* resizeCorner; ComponentBoundsConstrainer* resizeConstrainer;
And in my PluginEditor.cpp file I have the following in the constructor:
resizeConstrainer = new ComponentBoundsConstrainer(); resizeCorner = new ResizableCornerComponent(this, resizeConstrainer); //resizeConstrainer->setSizeLimits(200, 100, 800, 600); addAndMakeVisible(resizeCorner);
... and the following in the resized() method:
resizeCorner->setBounds(10, 20, 30, 40);
My DAW is BitWig. When I load the VST, it crashes. However it crashes so quickly that I have no opportunity to attach my IDE's debugger, so I can't set breakpoints or debug it.
Does anybody either (1) see anything wrong with my code above? or (2) have any advice for debugging crashes on startup (with no opportunity to attach debugger)?
My project compiles/loads/runs just fine if I leave out the resizing code, so I know it at least works without it.
I have read the following post, but didn't find anything useful: http://www.juce.com/comment/304104#comment-304104