OgreDotNet,Gangsta & Terrain Collision

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

rastaman

12-06-2006 17:58:43

There is a problem with VS2005 express in Debug mode, thread here, try using Release mode. The only solutions so far are to create a manifest file for your project exe, or rebuild Ogre3D in 2005 express.

What version of ODN are you using? current cvs needs Ogre v1.2 and so will Gangsta. There is a patch to bring gangsta to Ogre v1.2 http://sourceforge.net/tracker/index.php?func=detail&aid=1355717&group_id=139747&atid=744352

I'v not tested the terrain stuff with ODN the current cvs version of GN. I'v made alot of changed to GangstaNet localy and will update cvs may not be for a couple days. In the new version you will not need the Gangst_Ogre project, that will all be in GangstDotNet.