This application has requested the runtime to terminate it in an unusual way



  • Hi,

    I use Qt 5 in Qt Creator IDE. When I compile and I try my program in Qt Creator, it works well. But when I try my program in Windows Explorer, I have an error message "Microsoft Visual C++ - this application has requested the runtime to terminate it in an unusual way"
    How I can fix this problem ?



  • Maybe invite the application to a nice beer, so that it agrees to not request the termination.

    No, honestly, you might need to copy some QT DLLs into the application folder.



  • I had copy all the dll the program had resquested (QTGui, QtCore, QtWidget, libwinphtread, libstdc++6, libGLESv2, libgcc_s_sjlj-1, icuuc49, icuin49, icudt49). I have fin d the dll in "mingw47_32" of Qt folder.



  • Did you copy the qwindows.dll as well (needs to be located in a subdirectory "platforms") ?



  • I haven't "platforms" directory or qwindows.dll file...





  • This is one reason why I prefer Linux, the finding of dlls is much more sane there.



  • Yes :). But Linux has own problems with deployment if you need run apps whith different versions of libs. Besides not always you can choise target os.



  • Linux (and unix) builds versioning of libraries into the basic model, so unless you do something really weird or use non-standard directores, then no, you do not have these issues. Linux also uses rpaths build into the app, making the concept of a PATH not needed for most properly deployed software.

    Anyway, just wanted to let people reading a thread like this know that this is a Windows specific problem. Nothing more than just information :)



  • in windows better to copy "libEGL.dll" from qt bin folder.that will solve your problem.that means copy QTGui, QtCore, QtWidget, libwinphtread, libstdc++6, libGLESv2, libgcc_s_sjlj-1, icuuc49, icuin49,libEGL.dlls.
    and copy these in debug or release folder.and make a folder name "platforms" in that add "qwindows.dll" and also add another folder as "imageformats"and add "qgif.dll","qico.dll","qjpeg.dll" and related image dlls.put in a format that platform ,imageformats above dlls(dtgui,QtCore, QtWidget, libwinphtread, libstdc++6, libGLESv2, libgcc_s_sjlj-1, icuuc49, icuin49,libEGL.dlls.) and related exe file in one folder .sso that it will link perfectly i think..
    good luck....:)



  • I have the same issue with Qt5 but i was not able to find the solution.. in the pc i developed the app.exe works ok... but in other pc's not...



  • i found the solution... a folder platform with files qwindows.dll and qminimal.dll must be include in the deployment directory..



  • Thanks to you and I have solved it.
    I show the list of files and I'm using to QT 5.1.
    @
    ├── Qt5Core.dll
    ├── Qt5Gui.dll
    ├── Qt5SerialPort.dll
    ├── Qt5Widgets.dll
    ├── icudt51.dll
    ├── icuin51.dll
    ├── icuuc51.dll
    ├── libgcc_s_dw2-1.dll
    ├── libstdc++-6.dll
    ├── libwinpthread-1.dll
    └── platforms
    ├── qminimal.dll
    └── qwindows.dll
    @



  • Hi Guys.

    I have the same problem and i have solved it.

    Here is how i did it.

    • I have located a folder C:\Qt\Qt5.0.2\Tools\QtCreator\bin\

    • Locate your project folder "the project your have created project"

    • Locate your debug folder and drop the platform folder you have copied from your plugins folder
      mine is located at C:\Qt\Qt5.0.2\5.0.2\mingw47_32\plugins (Default)

    The platform folder contains the following .dll files
    qminimal.dll
    qminimald.dll
    qwindows.dll
    qwindowsd.dll

    In a nutshell i have copied the platform folder into my debug project file folder and runs the application without any error message.



  • Check this out may be it will help
    http://qt-project.org/forums/viewthread/25119/#148871



  • clouca is right.



  • I have try all methods. But I still failed. This problem upset me a lot. I think I have to give up Qt!



  • I have try all methods. But I still failed. This problem upset me a lot. I think I have to give up Qt!



  • Don't forget to remove debug-binaries once you want to roll out the release.

    @wutonjie: Start a thread and explain your problem.



  • Don't forget to remove debug-binaries once you want to roll out the release.

    @wutonjie: Start a thread and explain your problem.



  • Condition:in the pc i developed the app.exe works ok... but in other pc's not, error:This application has requested the runtime to terminate it in an unusual way

    This problem appears when the PC disappear some runtime dll , include some of windows,
    So check the dll needed by the program, it will help to solve this problem



  • @mustaphamni I've encountered the same question.would you please send the "qminimald.exe" and "qwindowsd.exe"to me? i could'nt find them on the internet. my email is 474935112@qq.com
    thank you so much.



  • @cislaonch add qwindowsd.dll which can be found under C:/QT/platforms folder.IT WORKED LIKE A MIRACLE email me if u want jhashane@gmail.com


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.