Trouble with OgreBindings

Tempest

14-10-2005 02:21:59

Sorry guys, I'm completely new to Ogre, and this is my first crack and installing it.

I downloaded the prebuilt dlls and I've placed them in c:\OgreSDK\bin\debug\

I'm trying to build some of the sample projects, like DemoParticleFX. It compiles; however, I get a runtime error of:

"An unhandled exception of type 'System.DllNotFoundException' occurred in ogredotnet.dll

Additional information: Unable to load DLL (OgreBindings)."

I checked, and the OgreBindings.dll exists under the OgreSDK\bin\debug\ folder.


Any ideas? Thanks in advance,

l33ts0n

14-10-2005 18:44:11

Can you C&P the full exception?

SIberwulf

15-10-2005 03:53:33

I work with Truefun, and am getting the same error as he is:

There are no real details for the exception, but I did snag the callstack out of VS.NET

> ogredotnet.dll!SWIGExceptionHelper..cctor() + 0x234 bytes
ogredotnet.dll!OgreDotNet.OgreBindingsPINVOKE..cctor() + 0x18 bytes
ogredotnet.dll!OgreDotNet.Root.Root() + 0x11 bytes
ogredotnet.dll!OgreDotNet.ExampleApplication.Setup() + 0x30 bytes
ogredotnet.dll!OgreDotNet.ExampleApplication.Start() + 0x10 bytes

Hope this helps. Eager to get crankin' on this engine ;)

Tempest

16-10-2005 00:49:24

Just an update... I've tried creating a simple project, which just inherits ExampleAnimation:


public class OgreDotNetTest : OgreDotNet.ExampleApplication
{
public OgreDotNetTest()
{
}

protected override void CreateScene()
{
}

[STAThread]
static void Main(string[] args)
{
using(OgreDotNetTest app = new OgreDotNetTest() )
{
app.Start();
}
}
}


The "Unable to load DLL (OgreBindings)" error is thrown on app.Start().

Has anyone come across this error?

EagleEye

16-10-2005 05:57:00

Make sure you copy not just the DLLs, but also the PDB files as well.

SIberwulf

16-10-2005 14:12:29

I only run into the error when I run it in release mode. When I run it in Debug, I get the following pop up.



Unhandled Exception: System.TypeInitializationException: The type initializer for "OgreDotNet.OgreBindingsPINVOKE" threw an exception. ---> System.TypeInitializationException: The type initializer for "SWIGExceptionHelper" threw an exception. ---> System.DllNotFoundException: Unable to load DLL (OgreBindings).
at OgreDotNet.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_OgreBindings (ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at OgreDotNet.SWIGExceptionHelper..cctor() in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\OgreNet\OgreBindingsPINVOKE.cs:line 97

--- End of inner exception stack trace ---
at OgreDotNet.SWIGExceptionHelper..ctor()
at OgreDotNet.OgreBindingsPINVOKE..cctor() in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\OgreNet\OgreBindingsPINVOKE.cs:line 116

--- End of inner exception stack trace ---
at OgreDotNet.OgreBindingsPINVOKE.new_Root__SWIG_3()
at OgreDotNet.Root..ctor() in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\OgreNet\Root.cs:line 136
at OgreDotNet.ExampleApplication.Setup() in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\OgreNet\Custom\ExampleApplication.cs:line 60
at OgreDotNet.ExampleApplication.Start() in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\OgreNet\Custom\ExampleApplication.cs:line 47
at DemoCEGUI.CEGUIApplication.Main(String[] args) in D:\Documents and Settings\Rob\Desktop\Ogre\OgreNet\ogreaddons\ogredotnet\DemoCEGUI\CEGUIApplication.cs:line 149

Tempest

16-10-2005 19:04:44

This can't be that hard to setup...

I'm tempted to uninstall everything and start over.

Does anyone have any additional advise, outside of whats in the Wiki?

mamba

16-10-2005 22:04:30

If you don't have C++ Net 2003 installed, then
you need also some dll's.

www.dll-files.com

msvcr71d.dll
msvcp71d.dll

These files are nessesary for the debugging version of ogredotnet.

Good luck.

l33ts0n

16-10-2005 23:56:51

OgreDotNet is built with the debug version of Ogre, so of course it links to the debug version of Ogre, _d.

You can compile to release mode and then rename the main Ogre DLL postfixed with _d.

SIberwulf

17-10-2005 01:32:14

If you don't have C++ Net 2003 installed, then
you need also some dll's.

www.dll-files.com

msvcr71d.dll
msvcp71d.dll

These files are nessesary for the debugging version of ogredotnet.

Good luck.


We have .NET 2003 installed. Going to try the solution regarding the renaming of the dlls without the appended _d.

Will post once I try that.

GoB

22-10-2005 09:03:52

If you get a missing entry point, you have the incorrect OGRE SDK version. (Too new or too old)

SIberwulf

22-10-2005 22:31:20

WE found out that we were using 1.0.5.

When is the wrapper gonna be upgraded to that, btw?

EagleEye

23-10-2005 06:17:02

I'm not sure what's going on with Maleficus... he's been incommunicato for over 2 weeks now.

I'm not sure if he's pissed, or just tired of talking about this project or what...

thelsdj

23-10-2005 06:52:39

You can still get 1.0.4 files here: http://sourceforge.net/project/showfile ... up_id=2997