Debug Error


10-07-2010 16:50:03

I'm fairly new to C#, and entirely new to Ogre, so don't beat me up here too badly if I am missing some basic skills : )
I am using VC# studio express 2008, and MogreSDK. I can create a project, and build it, but if i hit debug or try to run the build in the default folder i get a crash.
Ogre Exception(7:internalErrorException):could not load dynamic library c:/MogreSDK\RenderSystem_Direct3D9. System Error: The specified module could not be found. in DynLib::load at ..\..\ogre\OgreMain\src\OgreDynLib.cpp(line 91)

Now as suggested somewhere i was reading, i copied my built exe to the c:\mogresdk\bin\release folder, and it executes just fine from there, with no issues at all. However, that still doesn't help with debug mode.

Anyone have any suggestions for fixing this problem?


10-07-2010 22:10:36

Make sure that your plugins.cfg file contains these lines (among others):


And also make sure that RenderSystem_Direct3D9_d.dll is in your debug directory.

If they're already there, I suggest you look at this post.

If that doesn't help, reply with the contents of your plugins.cfg file.


12-07-2010 10:56:35

You should also make sure that Visual C++ Express is installed. Mogre is a .NET project that can be used with C#, but it uses Ogre (a C++ engine) and the debug version needs the debug runtime installed. The only way I know about to install them is to install Visual Studio, because there are only separate runtime install packages for the release versions of the runtime libs.