Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator:during startup program exited with code 0xc0000139

QtCreator:during startup program exited with code 0xc0000139

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 7.3k 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.
  • SikarjanS Offline
    SikarjanS Offline
    Sikarjan
    wrote on last edited by
    #1

    Hi,

    I want to build my app in release mode but at the end of the build I get the error message "during startup program exited with code 0xc0000139". In debug mode there are no issues.

    Looking through the web I found some post regarding this error. Here it was solved by upgrading Qt Creator. I already did that:

    Qt Creator 4.2.1
    Based on Qt 5.8.0 (MSVC 2015, 32 bit)
    Erstellt am Jan 20 2017 01:29:39
    Revision 7071b61e02
    

    I am on a Win 7 64bit machine. Here is a screen shot of my release kit. There is an error regarding CMake could this be the cause?

    jsulmJ 1 Reply Last reply
    0
    • SikarjanS Sikarjan

      Hi,

      I want to build my app in release mode but at the end of the build I get the error message "during startup program exited with code 0xc0000139". In debug mode there are no issues.

      Looking through the web I found some post regarding this error. Here it was solved by upgrading Qt Creator. I already did that:

      Qt Creator 4.2.1
      Based on Qt 5.8.0 (MSVC 2015, 32 bit)
      Erstellt am Jan 20 2017 01:29:39
      Revision 7071b61e02
      

      I am on a Win 7 64bit machine. Here is a screen shot of my release kit. There is an error regarding CMake could this be the cause?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Sikarjan "during startup program exited" - can you explain what exactly are you doing? Do you want to build AND start your app (Ctrl-R)? Or only build?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • SikarjanS Offline
        SikarjanS Offline
        Sikarjan
        wrote on last edited by
        #3

        I want to build and run. If I only do a build everything is fine, no errors.
        I forgot to mention that I tried clean project and build all as well.

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

          Hi,

          Can you check with Dependency Walker whether there's something fishy with your application ?

          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
          • SikarjanS Offline
            SikarjanS Offline
            Sikarjan
            wrote on last edited by
            #5

            I already did that. Following a youtube tutorial. I noticed that my error messages looked different. Not only dll were missing also other things were listed. After adding the gui and core dll to the folder I had still errors. I can make a screenshot on Monday.

            Today I compiled my app in release mode on Mac OS X. This works fine. No errors, app is running nicely.

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

              You should check whether one of the folder listed in the PATH environment variable also contains Qt .dlls.

              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
              1
              • SikarjanS Offline
                SikarjanS Offline
                Sikarjan
                wrote on last edited by
                #7

                Thanks for the hint. On my Windows system the system variables are blocked and cannot be edited. I guess the missing path variable was the root cause.

                To solve my issue I added the path variable as outlined here in my user specific variables.

                I also rechecked the dependencies with Dependency Walker. After adding the Qt5Core, Qt5Gui and Qt5Widgets dlls to the release folder I still get tons of errors. Since the program does start I am not sure if I need to worry about these errors. Is this a 32 vs. 64 bit issue?

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

                  Don't modify your PATH to include Qt.

                  What exact error ? Did you also deploy the plugins ? Like the platform plugin ?

                  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
                  • SikarjanS Offline
                    SikarjanS Offline
                    Sikarjan
                    wrote on last edited by
                    #9

                    Hi,

                    I did not modify it. In my path variables there was nothing about Qt. System PATH is block and cannot be edited. So I assume Qt could not set it during installation.

                    Regarding the errors see the linked screen shot.

                    Not sure what you mean with deploy plugins. Knowingly I did not do such a thing.

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

                      There's no PATH variable modification involved when installing Qt.

                      Looks like you are using the MinGW Qt version which is 32 bit. Do you have any dependency on your application ?

                      Where did you copy the .dlls for ?

                      If you didn't deploy the platform plugins with your app it won't start.

                      Did you took a look at windeployqt ?

                      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
                      • SikarjanS Offline
                        SikarjanS Offline
                        Sikarjan
                        wrote on last edited by
                        #11

                        I followed this tutorial and currently the app starts as expected.

                        No I did not take a look at windeployqt, yet.

                        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