Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    Tools
    4
    7
    28857
    Loading More Posts
    • 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.
    • m4l490n
      m4l490n last edited by

      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 Reply Quote 0
      • M
        mcosta last edited by

        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 Reply Quote 0
        • m4l490n
          m4l490n last edited by

          [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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • m4l490n
              m4l490n last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • B
                  bulx last edited by

                  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 Reply Quote 0
                  • First post
                    Last post