External dynamic lib causes crashes on Windows 10
I've spent many days struggling with crashes and the following error every time I tried to run my project (both editor or game build) with external lib:
"The game module 'myGameTest' could not be loaded. There may be an operating system error or the module may not be properly set up"
I've checked every step of the linkage procedure. The project compiles successfully on Visual Studio and there are copies of the DLLs in the required folders... I'm on Windows 10.
Today I got my hands on a Windows 8.1 PC with same UE4 version and tried to run the same project. I just made a copy of the project folder to the other machine with the same UE4 version and... it worked flawlessly! I've even built the project again on that machine and made changes on code to run some tests and didn't get any single problem...
Then I tried to place the same copy of the project on a fresh Windows 10 PC just to make sure it wasn't some weird issue on the first machine itself. And it didn't run again... So I can just conclude that DLL linkage is causing crashes under Windows 10 for some reason here... Both Windows 8.1 and 10 are 64bits version.
The library itself is working fine on Windows 10, I've tested it on non-UE4 projects and it works.
Does anyone have any idea about the cause of that? I can't format my main machine and install Windows 8.1 again just because of this issue...
Ps; I've tried this on both 4.8 and 4.9 UE4 versions.
You need to load it manually, follow the next code from the physics system and how it loads the PhysX DLL's. The code is located in: Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysXLibs.cpp
answered Oct 02 '15 at 07:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here