Problem with the Precompiled DLLs

Nachtwind

28-05-2006 20:23:42

Well, i just started again using ODN and i have the following environment:

SharpDevelop 2.0b
Ogre1.2 SDK
ODN Prebuilds
Everything installed, DLLs put in the debug/release folders, changed the Ressources file accpording to my needs and so on..
well, then i used Tutorial 1 (after referencing the needed DLLs) and this is the outcome:

D:\Elite\Game\bin\Debug>game

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': Die angegebene Prozedur wurde nicht gefunden. (Exception from HRESULT: 0x8007007F)
at OgreDotNet.OgreBindingsPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_OgreBindings
(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfM
emoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at OgreDotNet.OgreBindingsPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at OgreDotNet.OgreBindingsPINVOKE.SWIGExceptionHelper..ctor()
at OgreDotNet.OgreBindingsPINVOKE..cctor()
--- End of inner exception stack trace ---
at OgreDotNet.OgreBindingsPINVOKE.new_Root__SWIG_3()
at OgreDotNet.ExampleApplication.Setup()
at OgreDotNet.ExampleApplication.Start()
at TutorialApplication1.TutorialApplication.Main(String[] args) in d:\Elite\Game\Main.cs:line 20

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an ob
ject.
at OgreDotNet.ExampleApplication.Dispose()
at TutorialApplication1.TutorialApplication.Main(String[] args) in d:\Elite\Game\Main.cs:line 21

D:\Elite\Game\bin\Debug>_


Any solutions or do i miss something?

rastaman

28-05-2006 21:10:44

then i used Tutorial 1 (after referencing the needed DLLs) and this is the outcome:



Please read the wiki instructions, I just updated the part about using ODN in your projects. :)
http://www.ogre3d.org/wiki/index.php/Installing_OgreDotNet#Using_the_OgreDotNet_Wrapper_in_your_project

hope this helps

Nachtwind

28-05-2006 22:46:47

Hmm, thats exactly what i had done 0o

Nachtwind

30-05-2006 20:16:50

OK, i did this all once more. Same problem still.. and its the same with the demos of ODN... strange

Avalon

01-06-2006 20:58:37

Check again.

This problem was to do with mal-placement fo the Core OGRE (not OGRE.net) DLLs for me.

snipexv

16-06-2006 20:58:24

Do you need to copy the Ogre debug dlls for the release version of ODN?

coldphage

17-06-2006 20:47:38

Don't forget to put the media directory in the right place. At least one of the samples uses it, and it's very difficult to debug those pInvoke calls.

smitty1276

02-07-2006 22:58:54

Did this ever get resolved? I'm having the same problem.