I turned on “break on all exceptions” to track down a an access violation I was getting. Found it. Doh! Turned out I was trying to delete a DialogWindow which of course had deleted itself on hitting the close button! (why does it not zero itself too?)
Anyway. Another exception made itself apparent at the startup. A setBoundsRelative in my code was causing a break here…
int Component::getParentWidth() const throw()
{
return (parentComponent_ != 0) ? parentComponent_->compW_
: getParentMonitorArea().getWidth();
}
Why is this? Program works but am I doing some shit in the wrong order?
- main window constructor does a few things( setFullscreen and addtodesktop etc.)
- initComponents where all components are created, added etc.
- last line in initComponents is a sneaky wee call to resized where the components get sized.