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
Hmmm, I made those changes and still experience a crash. Any way to debug it? I don't have the ability to attach my debugger, since it crashes immediately upon running. Is there a best-practice way of getting the code to "pause" for a while so I can attach my debugger?
Well, I want to be able to resize my AudioProcessorEditor so that I can allow different sizes for my plugin. There is no good example left in the demo plugins on how to do this so I went here to look. The code in this post gives me the same seg fault as @loneboat describes above.
I figure that you have to include two new member variables
in the PluginEditor which you then instantiate in the constructor function. This works when run after compiling. When I do a setBounds call inside the Editor resized function the program however crashes.