Initialization Generic Exception

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

tobi11
Just popping in
Just popping in
Posts: 5
Joined: Wed May 28, 2008 20:20

Initialization Generic Exception

Postby tobi11 » Fri May 30, 2008 21:31

Hi!
I am trying to initialize CEGUI 0.6 on Mac OS X Leopard. I am using Ogre, so the code is that:
mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr);
mGUISystem = new CEGUI::System(mGUIRenderer, 0, 0, 0, "", "cegui.log");
This Code causes the following errors:
terminate called after throwing an instance of 'CEGUI::GenericException'
(0) : fatal error C9999: *** exception during compilation ***
Cg compiler terminated due to fatal error
Exited with exit code: 15
If I comment the CEGUI::System line (2) out, the following errors are displayed:
Assertion failed: (ms_Singleton), function getSingleton, file CEGUISingleton.h, line 79.
(0) : fatal error C9999: *** exception during compilation ***
Cg compiler terminated due to fatal error
Exited with exit code: 15
If I leave both lines out, all works well without any error.
I was not able to get the log file, because it will not be created, whatever path I write in the param list of System().
Can somebody help me fix these errors?
thanks

tobi11

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Sat May 31, 2008 07:55

Hi,

I think this could be that it can't find the XML parser module. I'm not sure what that would default to, since in CEGUIConfig.h it is set to the Expat parser, though in the other thread you mentioned renaming config.h.in to config.h - if this is getting included the default action in there is to undefine the CEGUI_DEFAULT_XMLPARSER macro - so that might be causing the issue (looking for a non-existent module).

You may be able to confirm this is the issue by wrapping the code in a try/catch block, catching the CEGUI::Exception, and outputting the error message in there via the CEGUI::Exception::getMessage member (this returns a CEGUI::String).

CE

tobi11
Just popping in
Just popping in
Posts: 5
Joined: Wed May 28, 2008 20:20

Postby tobi11 » Sat May 31, 2008 12:09

Yeah, you're right:
An exception has occurred: DynamicModule::DynamicModule - Failed to load module 'CEGUIExpatParser': Unknown Error
I already thought that this can't be so easy with the config file every time :-)
I changed the XML Parser and now everything works.
thanks


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests