DLL problem when tyring to use CEGUI

ZacharyH

28-06-2006 17:27:49

I recently tried to add the CEGUI to an existing, running C# app. I get the exception "The type initializer for 'OgreDotNet.Cegui.OgreBindings_CeguiPINVOKE' threw an exception." when I execute the following code.

guiRenderer = new OgreCEGUIRenderer (renderWindow,
(byte) RenderQueueGroupID.RENDER_QUEUE_OVERLAY, false, 3000, sceneManager);

The output window of the .net evnironment in debug mode is:

A first chance exception of type 'System.DllNotFoundException' occurred in OgreDotNet.Cegui.dll
A first chance exception of type 'System.TypeInitializationException' occurred in OgreDotNet.Cegui.dll
A first chance exception of type 'System.TypeInitializationException' occurred in OgreDotNet.Cegui.dll

Ogre.log just lists the below after that.

10:25:50: Unregistering ResourceManager for type BspLevel
10:25:50: *-*-* OGRE Shutdown
etc.

This is a C# app in .net 2005. The only DLL's I don't have in my debug folder are ode.dll (this is not on my system anywhere) and the Gangster ones.