Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
philb's avatar
philb
Explorer
10 years ago
Solved

ovr_Initialize() returning ovrError_LibLoad

I'm migrating my C++ OpenGL application from OculusSDK version 0.7 to SDK 1.3, and I'm running into an issue with ovr_Initialize(). It is returning ovrError_LibLoad (-3001). I didn't have this problem...
  • philb's avatar
    10 years ago
    I think I've figured out what is happening. The path to the oculus runtime directory is being stored in the PATH system environment variable, which is part of the standard DLL search order (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586).

    We're calling LoadLibraryEx(), which is changing the default DLL search order.

    Now that I see how Oculus is finding that path, I think I can figure out how to change my application back to the default DLL search order so that it will load properly.

    Thanks.