Syphius
08-06-2006 20:57:36
Hello everyone!
I have recompiled Gangsta with the patch to use the Terrains, I have recompiled OgreDotNet with this new gangsta, But when I use GangstaDotNet in a C# application, I have an error message:
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'GangstaDotNet.GangstaBindingsPINVOKE' threw an exception. ---> System.TypeIni
tializationException: The type initializer for 'SWIGExceptionHelper' threw an ex
ception. ---> System.DllNotFoundException: Unable to load DLL 'GangstaBindings':
La procédure spécifiée est introuvable. (Exception from HRESULT: 0x8007007F)
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper.SWIGRegisterExcep
tionCallbacks_GangstaBindings(ExceptionDelegate applicationDelegate, ExceptionDe
legate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDele
gate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, Except
ionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelega
te outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate sy
stemExceptionDelegate)
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper..ctor()
at GangstaDotNet.GangstaBindingsPINVOKE..cctor()
--- End of inner exception stack trace ---
at GangstaDotNet.GangstaBindingsPINVOKE.Manager_getInstance()
at GangstaDotNet.Manager.getInstance()
at TutorialApplication1.TutorialApplication.LoadPhysicsDrivers() in C:\Robot3
D\Physics\Physics\Program.cs:line 84
at TutorialApplication1.TutorialApplication.CreateSceneManager() in C:\Robot3
D\Physics\Physics\Program.cs:line 94
at OgreDotNet.ExampleApplication.Setup()
at OgreDotNet.ExampleApplication.Start()
at TutorialApplication1.TutorialApplication.Main(String[] args) in C:\Robot3D
\Physics\Physics\Program.cs:line 114
Could you help me? Should I use a special settings in VS2005 to compile GangstaBindings???
PS:
I use Visual Studio 2005, under Windows.
To compile Gangsta I use Ogre 1.0.3, for gangstaDotNet too
I have recompiled Gangsta with the patch to use the Terrains, I have recompiled OgreDotNet with this new gangsta, But when I use GangstaDotNet in a C# application, I have an error message:
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'GangstaDotNet.GangstaBindingsPINVOKE' threw an exception. ---> System.TypeIni
tializationException: The type initializer for 'SWIGExceptionHelper' threw an ex
ception. ---> System.DllNotFoundException: Unable to load DLL 'GangstaBindings':
La procédure spécifiée est introuvable. (Exception from HRESULT: 0x8007007F)
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper.SWIGRegisterExcep
tionCallbacks_GangstaBindings(ExceptionDelegate applicationDelegate, ExceptionDe
legate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDele
gate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, Except
ionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelega
te outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate sy
stemExceptionDelegate)
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at GangstaDotNet.GangstaBindingsPINVOKE.SWIGExceptionHelper..ctor()
at GangstaDotNet.GangstaBindingsPINVOKE..cctor()
--- End of inner exception stack trace ---
at GangstaDotNet.GangstaBindingsPINVOKE.Manager_getInstance()
at GangstaDotNet.Manager.getInstance()
at TutorialApplication1.TutorialApplication.LoadPhysicsDrivers() in C:\Robot3
D\Physics\Physics\Program.cs:line 84
at TutorialApplication1.TutorialApplication.CreateSceneManager() in C:\Robot3
D\Physics\Physics\Program.cs:line 94
at OgreDotNet.ExampleApplication.Setup()
at OgreDotNet.ExampleApplication.Start()
at TutorialApplication1.TutorialApplication.Main(String[] args) in C:\Robot3D
\Physics\Physics\Program.cs:line 114
Could you help me? Should I use a special settings in VS2005 to compile GangstaBindings???
PS:
I use Visual Studio 2005, under Windows.
To compile Gangsta I use Ogre 1.0.3, for gangstaDotNet too