QT5.5 : Application Runtime Error (application has requested the runtime to terminate)
-
Hi All,
I have built a Desktop application using QT5.5. My build went completely fine but on running the generated .exe file, I am getting the following error:
Microsoft Visual C++ Runtime Library
"this application has requested the runtime to terminate it in an unusual way. Please contact applications Support Team"My build folder includes all the required .dll file
Qt5cored.dll
Qwindow.dll
Qminimal.dll
libgcc_s_dw2-1.dll
libstdc++-6.dll
etc.But none of these things work and I am still getting the above mentioned error. Would appreciate any help.
-
hi and welcome
You seems to have mixed DEBUG and non debug
t5cored.dll << notice the D. its for debug mode.
But the rest of you DLLS seems not to be debug ?So is this a debug build or release build?
You can see here what DLLS are needed
http://www.tripleboot.org/?p=138
Notice the VS runtime dlls. -
@mrjj : Thanks for response.
It's a debug build. If I do not include Qt5cored.dll then it gives me an error saying "Qt5cored.dll is missing".
Since I am using a MinGW 32 bit compiler, all the file listed in the above link are already present in my debug folder. -
ok but if debug build. ALL files should end with D !
like
"C:\Qt\Qt5.5.0\5.5\mingw492_32\plugins\platforms\qminimald.dll"and they should come from ur compiler folder.
so my best guess is that your dlls are wrong.
-
Ok. if u are VERY sure DLLS are correct.
Then maybe for some reason it finds others. (in other folder)
Try to use
http://www.dependencywalker.com/
to see what it loads.
or the fast test.
rename the Qt folder so it cannot get anything from there and run the exe again. -
@karan.kapoor
but
platforms folder should be in ur folder! -
@mrjj That was a mistake I did not keeping Platforms folder in with my debug folder. I did that now (C:\Users\KapoorK\Desktop\build-qIMS_bb-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\platforms).
But as per dependency walker, on examining my .exe file, it is no where accessing qwindowd.dll and others in platform folder.
-
ok so it can still not start ?
-
cant explain.
sorry.
maybe try a release build and the list from
http://www.tripleboot.org/?p=138 -
Hi and welcome to devnet,
One thing you can use is the windeployqt helper program. It should setup your Qt dependencies correctly for your application to start.