Unsolved The program has unexpectedly finished
-
Hello:
I am a new user QT in Windows.
I want to take an example and learn from that example. But no matter what project you use, always get the error
"The program has unexpectedly finished"
I would greatly appreciate some help that will let me use QT
regards
Carlos789
"Starting C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe...
The program has unexpectedly finished.
C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe crashed." -
Hi and welcome to devnet,
Does it also happen with a default project generated with Qt Creator ?
-
I find that running under the debugger is useful under these circumstances. It gives you an error message about the cause and a stack trace.
Mike
-
@mjsurette
Hi:
The text that have the "Compiler Output" when I run "Build Project", is attached.
regards
Carlos16:16:49: Running steps for project libusb_Demo...
16:16:49: Configuration unchanged, skipping qmake step.
16:16:49: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/microchip/mla/v2016_04_27/apps/usb/device/vendor_basic/utilities/libusb_cross_platform_example/build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'C:/microchip/mla/v2016_04_27/apps/usb/device/vendor_basic/utilities/libusb_cross_platform_example/build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug'
16:16:50: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
16:16:50: Elapsed time: 00:01. -
@SGaist said in The program has unexpectedly finished:
Does it also happen with a default project generated with Qt Creator ?
Hi:
Yes, sure it is a beginner's mistake but I can not find the reason.
regards
Carlos -
You provided the build output. What would be interesting is the debugger backtrace when your application crashes.
One thing you should check is that all the pointer you might be using are initialized and that you are not shadowing member variables in your constructors.
-
@SGaist Hi:
I get a pop up message telling me Executable error : During startup program exited with code 0xc0000139.
It is indicative of something?
Regards
Carlos -
Hi that error probably means you have 2 versions of Qt or of MinGW installed, so when you try to start your program, the wrong one (the wrong .dll) gets chosen :-(
-
Hi:
It is true, I have two versions of QT installed,
You recommend me ?. that
Uninstall everything and start again?
regards
Carlos