Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QT5.5 : Application Runtime Error (application has requested the runtime to terminate)
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
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
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 !
and they should come from ur compiler folder.
so my best guess is that your dlls are wrong.
@mrjj Sorry, I forgot to write D in the end with Qminimal and Qwindow in my main post.
I have all .dll files with D in end.
Ok. if u are VERY sure DLLS are correct.
Then maybe for some reason it finds others. (in other folder)
Try to use
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.
@mrjj Just examined my .exe file by changing name of QT and also without changing the name. It is somehow not entering the following path to access the Qwindow files:
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 ?
Nopes. Still same error.
maybe try a release build and the list from
@mrjj No problem. Thanks for your time and effort.
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.