So, I am having trouble with the ResourceCache when it is access from inside a DLL. My setup is this:
I have an app, MyApp.exe, which links to Urho3D.dll (on Win64). I also have MyLib.dll, which is dynamically loaded at runtime. MyLib.dll is linked to Urho3D and contains various utility functions/components.
When I try code like:
Texture* tex = rc->GetResource<Texture>("Textures/TestHeightField.png");
I will always get a null reference, or a message saying that the resource could not be loaded (yes I have check all the paths).
Also, when I write stuff like:
Model* mdl = new Model(context);
mdl->LoadFile("path/to/Box.mdl");
My app crashes completely. In this post, the suggestion was to make sure the lib options are the same. I have verified that. Is there a specific reference in the code to where those defines make a difference? Is it simply a case of inserting #define URHO3D_OPENGL
and #define URH3D_SSE
(or whatever the right options are) somewhere in MyApp?