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. Can't run program from QT Creator says it exited or Cannot obtain a handle to the inferior

Can't run program from QT Creator says it exited or Cannot obtain a handle to the inferior

Scheduled Pinned Locked Moved General and Desktop
19 Posts 11 Posters 20.5k Views
  • 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.
  • P Offline
    P Offline
    pwnstar23
    wrote on 23 Oct 2012, 06:45 last edited by
    #6

    No, the .dlls are fine. Strangly I installed 2.6rc and it worked after setting up the kits, it built and run it fine a few times and now im getting the same error again.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pwnstar23
      wrote on 23 Oct 2012, 20:23 last edited by
      #7

      I've uninstalled and reinstalled everything QT and still getting this problem. QT is not usable like this.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Amartel
        wrote on 8 Nov 2012, 17:25 last edited by
        #8

        I have the same problem. Qt 4.8.2 + Qt-Creator 2.5.2 under WinXp.
        I ran into it in two projects: both console and finishes very quickly. One of them is a test project, the other - a console project, which does not call QCoreApplication::exec() (I checked a project, which calls it - no problem there).
        After rebuilding - first launching finishes well. In all others qt-creator thinks that the program is still running (and writes "Cannot obtain a handle to the inferior" in debug console) though actually it does not.
        It is annoying.

        1 Reply Last reply
        0
        • 3 Offline
          3 Offline
          3.141592
          wrote on 4 Dec 2012, 10:43 last edited by
          #9

          Hi there,

          is there any solution to this problem?
          I observed the same problem here, but the message only occurs during my QTest's.
          I assume that the QTEST_APPLESS_MAIN sometimes runs into that error-message.
          It seems to correlate with the presence or absence of a QCoreApplication, because if i use the same code within my Console-application the message never occurs.
          Also Amartel mentioned, that his project using QCoreApplication runs without problems...

          Should one file a Bug-Report here?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            chakie
            wrote on 7 Mar 2013, 11:07 last edited by
            #10

            I see the same on Win7 using 5.0.1. For me there has been nothing but errors with 5.0.1. For instance debug/release paths are mixed up when building, this error, uic seems to create invalid ui_foo.h files etc.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              monza
              wrote on 8 Mar 2013, 04:37 last edited by
              #11

              If you go to Projects -> build & Run and then check the Run settings, make sure that the Executable being called in the Run configuration is the same one for the build configuration e.g. ./debug/<your_app.exe> (use absolute path) for a debug configuration

              1 Reply Last reply
              0
              • W Offline
                W Offline
                wakeuky
                wrote on 8 Mar 2013, 04:43 last edited by
                #12

                There have been a few related issues. I had the "handle" issue among others when moving to 5.0.1. I resolved using the following steps.

                1. Clean project
                2. Close QtCreator
                3. Remove Release/Debug Folder from app directory
                4. Delete xxx.pro.user file (lives in app directory)
                5. Manually delete Makefile, Makefile.Debug, Makefile.Release (If still there)
                6. Open Qt Creator again and open your project. It should now be asking you to reconfigure your project build settings.
                  Also, check your environment variables – ensure they are updated for 5.0.1 paths.
                  "Reference to similar problem":http://qt-project.org/forums/viewthread/25326/
                  "Reference to another similar problem":http://qt-project.org/forums/viewthread/25058/

                Don't Panic

                1 Reply Last reply
                1
                • T Offline
                  T Offline
                  tesmai4
                  wrote on 4 Nov 2013, 11:54 last edited by
                  #13

                  Thanks Wakeuky for step by step reply.

                  It is not working in my case.
                  I could debug/run my project; made some changes in the code and then this error appeared.
                  Can there any other reasons for this problem?

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    wakeuky
                    wrote on 4 Nov 2013, 12:37 last edited by
                    #14

                    Hi tesmal4, it has been quite a while since I have seen this issue. This issue occurred for me when I had created a project under the 4.8.4 environment and tried opening the project under 5.0.1.

                    I am no using the latest 5.1.1 release and have had no issues of the sort. What version was your project created under?
                    What version are you currently trying to use?

                    Don't Panic

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tesmai4
                      wrote on 4 Nov 2013, 15:07 last edited by
                      #15

                      Qt 4.7.4 for Desktop MinGW 4.4 and Qt Creator 2.4.1 . I did not change any configuration for the project. I only made changes in the cpp file.

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        tesmai4
                        wrote on 5 Nov 2013, 16:24 last edited by
                        #16

                        I accidentally deleted DLL path. Now its working fine.
                        Thanks for your help and advice.

                        Regards

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jcga
                          wrote on 21 Jul 2015, 13:04 last edited by
                          #17

                          teslmai4: I have the same kind of problem with Qt 5.5.0. Can you please indicate what DLL path you delete?

                          1 Reply Last reply
                          0
                          • Saber LeeS Offline
                            Saber LeeS Offline
                            Saber Lee
                            wrote on 21 Feb 2016, 10:57 last edited by
                            #18

                            I have same issue.
                            And I copy my own DLL file to app-out-dir.
                            then this issue can to solute.

                            1 Reply Last reply
                            0
                            • jaytJ Offline
                              jaytJ Offline
                              jayt
                              wrote on 18 Mar 2016, 20:16 last edited by
                              #19

                              Seems likely that it is not a real "problem" but can be due to your application exiting too quickly when being run under QtCreator, please see this link
                              (http://stackoverflow.com/questions/21539162/qt-creator-code-is-running-but-i-get-an-error-message-from-the-ide

                              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