Important: Please read the Qt Code of Conduct -

[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;

    QGLWidget gl;

    QComboBox c;
    return app.exec();

    This is a minimalversion of the crash.

    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

    System: 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:

    Installing the following hotfix solves the problem:"

  • Thanks for the Link. Can u please append [Solved] to your Question, if your problem is fixed..

    Thanks and Regards..

Log in to reply