Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED]The program has unexpectedly finished ...exited with code -1073741511
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]The program has unexpectedly finished ...exited with code -1073741511

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 4 Posters 30.1k Views 2 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.
  • m4l490nM Offline
    m4l490nM Offline
    m4l490n
    wrote on last edited by
    #1

    Hello everybody

    I'm starting to use Qt Creator and I've followed the tutorial "Getting Started Programming with Qt Widgets":http://qt-project.org/doc/qt-5.0/qtdoc/gettingstartedqt.html and I'm having this problem;

    Starting C:\Malagon\QtProjs\Cards-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\Cards.exe...
    The program has unexpectedly finished.
    C:\Malagon\QtProjs\Cards-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\Cards.exe exited with code -1073741511

    The code compiles without any problem or error but when I hit the "RUN" button I get the previously mentioned error. What's wrong? I did everything the tutorial says but I don't know what's happening.

    Any Ideas?

    Regards.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Probably you have problem on DLL loading.

      You can Use "Dependency Walker":http://www.dependencywalker.com/ to discover you EXE dependency and verify if all libraries nedded are found in PATH.

      Also check if you have multiple version of MinGW installed.

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • m4l490nM Offline
        m4l490nM Offline
        m4l490n
        wrote on last edited by
        #3

        [quote author="mcosta" date="1364491912"]Also check if you have multiple version of MinGW installed.
        [/quote]

        Thak you for answering.

        Ahhh yes, I have multiple versions of MinGW intalled. I have one that I installed from MinGW site and the one Qt Creator installed. Do you think that's the problem?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It might be, you could be using code compiled with one and dll compiled with the other and they won't go along.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • m4l490nM Offline
            m4l490nM Offline
            m4l490n
            wrote on last edited by
            #5

            That was the problem the double MinGW installation, I uninstalled the MinGW that I had before installing Qt Creator and that solved the problem.

            How do I mark this thread as solved?

            Regards!!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Great !

              Simply update the thread's title and add [solved] to it :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bulx
                wrote on last edited by
                #7

                In case somebody is tearing out hair on this: I also found that the same error came up when my code has super-big array. Reducing the size of the array made the error go away.

                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