[Solved] Crash in Release-Mode Visual Studio
-
Hello,
QT 4.8.3 seems to be installed wrongly. It works perfectly on two of my computers, but it doesnt work on my third computer. Everything compiles fine, but when i run this code in release it crashes. In debug mode it works perfectly. In release mode it compiles and runs, but when i CLICK on the combobox it crashes!
@
#include <QApplication>
#include <QGLWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QComboBox>int main(int argc, char **argv)
{
QApplication app(argc, argv);QGraphicsScene scene;
QGraphicsView view;
view.setScene(&scene);QGLWidget gl;
view.setViewport(&gl);QComboBox c;
c.addItem("test");
scene.addWidget(&c);view.show();
return app.exec();
}
@This is a minimalversion of the crash.
Compile:
configure -debug-and-release -opensource -qt-zlib -qt-libpng -qt-libjpeg -qt-libmng -qt-libtiff -mp -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -platform win32-msvc2010
nmakeSystem: VS2010 64bit, Windows 7 64bit, Xeon E5-2680, Geforce GTX 680
-
Problem fixed.
Never compile QT with Visual Studio 2010. Period. It is buggy!
You have to use Visual Studio 2010 Service Pack 1 /and/or the hotfix..."The issue is caused by this bug in MSVC2010:
http://connect.microsoft.com/VisualStudio/feedback/details/573262/incorrect-alignment-with-x64-optimizer-and-movapsInstalling the following hotfix solves the problem:
http://support.microsoft.com/kb/2280741"