Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Crash in Release-Mode Visual Studio
Forum Updated to NodeBB v4.3 + New Features

[Solved] Crash in Release-Mode Visual Studio

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zweistein
    wrote on last edited by
    #1

    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
    nmake

    System: VS2010 64bit, Windows 7 64bit, Xeon E5-2680, Geforce GTX 680

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zweistein
      wrote on last edited by
      #2

      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-movaps

      Installing the following hotfix solves the problem:
      http://support.microsoft.com/kb/2280741"

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Macro
        wrote on last edited by
        #3

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

        Thanks and Regards..

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved