To deploy my application I put libmfxsw32.dll in the same directory as my exe. That used to work, but now when libmfxsw32.dll is in the same dir as my exe, it crashes when loading the hardware dll. If libmfxsw32.dll is in some other directory in the path my program does not crash and works fine.
I am changing several things at once, upgrading to Visual Studio 2015 and INDE 2015 Update 2. I am on Windows 8.1 Pro x64 on a Core i7 3770 (Ivy Bridge) and have just installed the latest driver using the Intel Driver Update Utility which is 184.108.40.206.4226.
I would like to keep my deployment simple and put libmfxsw32.dll in the same dir as my exe. Is that not a supported scenario? Am I doing something wrong?
For better understand your system. Please send mediasdk_system_analyzer log to me, you can find mediasdk_system_analyzer under following folder.
About MSDK sample version, are you using the most new MSDK version from https://software.intel.com/en-us/media-client-solutions-support/code-samples ?
And, What is the command line for your test ?
I have attached the mediasdk_system_analyzer output. I was not using a sample I was using my own program. However I have reproduced the problem with sample_encode in Intel Media Samples 220.127.116.11. The sample_encode.exe does not crash normally, but when I put libmfxsw32.dll into the same dir as the exe it crashes just like my program. It does not crash with every command line, it only crashes when using hw encode. So for example this does not crash:
sample_encode.exe h264 -i Z:\TestMedia\Formats\dvd.nv12 -o C:\Temp\foo.264 -w 720 -h 480 -sw
And this does crash:
sample_encode.exe h264 -i Z:\TestMedia\Formats\dvd.nv12 -o C:\Temp\foo.264 -w 720 -h 480 -d3d -hw
Windows shows this information for the libmfxsw32.dll: 6/2/2015 5:52 PM, 16,287 KB with properties 15.9 MB (16,677,544 bytes).
Do you modify the sample_encode.exe source for your reproduce the issue ?
How do you load libmfxsw32.dll in your program ?
Following can be find in "Known Limitations" in page 6 in mediasdk_release_notes.pdf.
- Loading of library libmfxsw32.dll/libmfxsw64.dll not through the dispatcher is unsafe.