Can't run program from QT Creator says it exited or Cannot obtain a handle to the inferior
-
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. -
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?
-
-
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.
- Clean project
- Close QtCreator
- Remove Release/Debug Folder from app directory
- Delete xxx.pro.user file (lives in app directory)
- Manually delete Makefile, Makefile.Debug, Makefile.Release (If still there)
- 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/
-
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? -
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