Solved Application crash when it run with Qt creator but works after "deploy"
-
Yes, if I copy .dll next to .exe, it still not working
-
Just to be sure we are on the same line:
- You build your application
- You copy the DLL in the build folder
- You call run from Qt Creator
- Crash ?
-
Yes.
On the other side, if I copy .exe on folder with hidapi.dll and other dll of Qt (as I deploy). I can execute the application without crash. -
Strangeā¦ Does hidapi.dll have any dependency ?
-
no, I don't think.
And when I copy .dll on "deploy folder" I don't added anything except hidapi.dll and Qt dll -
I found the problem. The difference between "deploy" folder and project folder is : msvcr120d.dll. If I add this dll on project folder, it works.
Thank you for your help -
@helenebro
actually the msvc runtime binaries should also be available system wide (e.g. contained in the PATH), so something went wrong during installation. Or do you have altered the environment variables in the QtCreator project settings? -
I don't know if it's a installation problem but I don't found msvrc120d.dll on C:/Windows/System32 or on C:/Windows/SysWOW64.
-
Hi, msvcr120dl.dll usually you will only obtain by installing Microsoft Visual Studio 2013. Because it's the debug flavor of the normal msvcr120.dll, and that dll is much more easy to find.
Try building your app in Release mode, then you might get rid of your dependency on msvcr120d.dll. -
If I build my app in Release mode I have the problem if msvcr120d.dll on my folder. I think it's because library hidapi is build with visual studio.