OK, I started a brand new project and added nothing but a QwtPlot in the application window. Still the program crashes while closing and reports heap corruption. Below is the code I used:
GUI
::GUI(QWidget *parent, Qt
::WFlags flags
)
this->resize(1010,950);
// Plot
curve->attach(dataPlot);
viewtabs->addTab(dataPlot, "Plot");
setCentralWidget(viewtabs);
}
GUI::GUI(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags){
this->resize(1010,950);
QApplication::setStyle(QStyleFactory::create("Cleanlooks"));
viewtabs = new QTabWidget();
// Plot
dataPlot = new QwtPlot();
curve = new QwtPlotCurve("Curve");
curve->attach(dataPlot);
viewtabs->addTab(dataPlot, "Plot");
setCentralWidget(viewtabs);
}
To copy to clipboard, switch view to plain text mode
I noticed whenever I commented out "curve->attach(dataPlot);", the program does not crash. Did I initialize the curve wrong? Also I forgot to mention earlier I am using Vista Ultimate 64 bit, while the application and Qwt were compiled with 32 bit mode.
If you happen to have Qwt compiled under Vista, can you please send me the debug and release LIB and DLL files so I can test them?
Thanks.
Bookmarks