Solved GUI Application crashes before launch
-
@luisrcastan And did you try to run your app through debugger as @SGaist suggested?
-
Hi @jsulm
Yes, sorry if i didn't explain correctly.
Using the debug button in the IDLE, the 0xc0000139 error code appear, and in the application output windows prints:
Debugging starts
Debugging has finishedThe compile output window prints:
09:43:39: Running steps for project untitled4...
09:43:39: Configuration unchanged, skipping qmake step.
09:43:39: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe"
C:/Qt/Qt5.5.0/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/RCastanon/Documents/test/build-untitled4-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'C:/Users/RCastanon/Documents/test/build-untitled4-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
09:43:39: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
09:43:39: Elapsed time: 00:01.This was only when I try with the debug mode button.
Regards
Raul C, -
Do you have any external dependencies for your application ?
-
Hi @SGaist,
What do you mean by external dependencies?
At the beginning I've tried to run the project that I've worked long time ago, but after I haven't be able to do it I try to run a bare new one.
Right now I'm trying to run a default project, the one that is created by default when we create a new project:
New->Project->GUI application...Thanks again
-
By external dependencies I mean any library that you are using in your application.
Do you mean that even a default project doesn't start ?
-
@SGaist ,
That's correct, a default project does not start...
-
@luisrcastan Create a console application and check whether this one starts. If it does then most probably it is an issue with your graphics driver.
-
Hello @jsulm
I've created a new project and it seems to work properly...
But when I added a simple code like
unsigned int x;
x=1;and I set a breakpoint in x=1;
The next messages pop out:
If I have to guess.... i think I'm not using the right compiler, because the compilation does not set any kind of error, but the exe file does not run properly.
How can I know that I'm using the right compiler?
Thanks for your support
-
@luisrcastan What happens if you start this app without debugger (Strg-R)?
-
Hi @jsulm ,
At first look seems like it is working correctly, but as I see, the instructions do not execute.
With a new project I added a simple printf("Hello word"); then the system("PAUSE"); instruction.
The application output shows:
The console application window does not print anything:
Thanks
-
@luisrcastan
This is guesswork, but if it were me because of where it falls over and the random exit code I would be checking:-
Are you sure the program is finding the correct versions of MinGW C runtime startup library (and standard libraries), and that those are the versions matching what is expected at compilation time?
-
Does it make any difference if you compile not-for-debug?
-
Have you tried running your program not from inside Qt Creator?
-
Take your "Hello world" program and compile it as a standalone C/C++ program quite outside of anything Qt, using the same MinGW compiler. How does that behave?
-
-
Hello guys,
Since I thought this was related to some internal configurations, what I did is to clean my PC, I uninstalled all the application that I'm not using currently, cleaned all the frameworks and all visual studio versions.
After this clean up, I install QT and the application is running without any problem.Thank you all for your support.
Best regards
Raul C.