during startup program exited with code 0xc0000139
-
Hello guys, i'm working on project in Qt , i uninstalled Qt (version 4.8) and installed it another time (i take the version 4.9.1 and 5.3.0 Mingw compiler the same as the version that i uninstalled it ) and now when i try to run my program , it shows this message and the program don't start, in release mode i can run my program , someone can help me pelase ? thanks!
-
@Zunneh First: I guess you mean QtCreator 4.8/4.9.1 (there is no Qt 4.9.1)?
Qt and QtCreator are not the same.
Second: without providing more information hardly anybody will be able to answer you question.
Which exact Qt version are you using?Most probably a library is missing. Does your app use any libraries?
-
@Zunneh On Linux you can use ldd command line tool on Windows http://www.dependencywalker.com/
-
@Zunneh I don't be sure that I understand your problem:
with QtCreator 4.8 and Qt 5.3.0/MinGW, your are able to build and run the project.
But as you have upgraded QtCreator to last release (4.9.1) and not Qt Kit (still Qt 5.3.0/MinGW) you can build but not run the project.Is this correct?
Are you sure Qt Kit have not be changed while upgrade QtCreator version?
Have you tried to rebuild the project? -
@Zunneh said in during startup program exited with code 0xc0000139:
i want to install the Qt 5.3 and Qt 5.6.3 components
You cannot "panache" the Qt version, if you want to use Qt Component 5.6.3, you must also use Qt 5.6.3.
Qt components need Qt libs. -
@KroMignon i can use the last Qt (4.9.1 ) with an older libraries , i want to use the 5.6.3 and 5.3 libraries ? can i ? instead of using Qt desktop 5.11.3 (see the screen shot ) i want to use Qt desktop 5.3 and Qt desktop 5.6.3 (auto detected)
-
@Zunneh Once again QtCreator 4.9.1 is an IDE (integrated development environment), this have not link with the Qt version you will use to create your project.
QtCreator 4.9.1 have been build with Qt 5.12.3, you can see it in the about dialog
You can use QtCreator 4.9.1 to build a project that use Qt 5.3.x or Qt 5.12.x, thats doesn't mather.
The Qt Kit you will use are those you have installed on your development PC.
Then in projects, you can select which kit you want to use to build you project:
-
@Zunneh Which Qt Kit you want to use is up to you.
If you want to build project with Qt 5.3, you have to install a Qt 5.3 kit (MinGW, MSVC or someting else). But you could also build the project with a new Qt Kit, like the Qt 5.11.3 you have already available.
You only have to open your project (PRO file if it is qmake base) and select the right Qt Kit, then build.
Have you take a look to the QtCreator presentation? -
ok.. if you want to install a different version of Qt framework you can do that by using the MaintenanceTool from the Qt folder. there do not select update but install new components and select which version do you want from your left frame. Any way as already suggested you can use the new Qt and you should make your source compatible with the latest version of Qt.
Also after a bit of googling for the error 0xc0000139 - it seems that this error is from windows 10 (anyway windows - I'm using GNU/Linux) and some drivers or updates -
try to put some breakpoints and see what debug say -
@arsinte_andrei Thank you , the problem is that the components that i want to add (5.3 and 5.6.3 ) are not in the list (because they are old ) of the Maintenance Tool, the oldest one available on the list is Qt 5.9
-
@Zunneh
Hi
Take them from the archive.
https://download.qt.io/archive/qt/5.3/5.3.2/
https://download.qt.io/archive/qt/5.6/5.6.3/ -
I can see that you build your kit manual.. can you send some pictures from Qt version tab and Compiler time and qmake tab..
-
@Zunneh said in during startup program exited with code 0xc0000139:
i added component Qt 5.6.3
Using offline installer from the link @mrjj provided?
If it is not detected you can add that Qt version manually in the "Qt Versions" tab and then create a Kit with this Qt version.