Page 1 of 1

Initialization error

Posted: Sun Apr 08, 2012 16:59
by minecrawlerx
Hello CEGUI community,

I am currently working on a project using Ogre3D. For the GUI I wanted to use CEGUI. But I always get an error in the following lines (/last line):

Code: Select all

void CGui::init(Ogre::RenderTarget &target)
{
   g_pLogfile->fNewLine("Initializing CEGUI...");
   pRenderer = &CEGUI::OgreRenderer::bootstrapSystem(target);


which is called via

Code: Select all

CGui* pGUI = new CGui();
pGUI->init(*g_pEngine->getViewport()->getTarget());

Constructor is empty so far...


Since Ogre automatically creates the windows, I have also tried this:

Code: Select all

void CGui::init(void)
{
   g_pLogfile->fNewLine("Initializing CEGUI...");
   pRenderer = &CEGUI::OgreRenderer::bootstrapSystem();


But I always get the following error message:

Unhandled exception at 0x76fbb9bc in Project1.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x0036cf38..


Before those lines I have not used CEGUI. Ogre already has initialized and there is a Window for rendering (still everything black of course).


What could be the problem? What should I try next? Thanks in advance for your help!

Re: Initialization error

Posted: Sun Apr 08, 2012 18:33
by Kulik
I am not really sure how people can still miss the huge red text on top of the forum!

When asking for help: Please post your CEGUI.log and the text of any error or exception messages. Thank you!

PS: You have to catch the exception and inspect it. The message of it will be in the log as well.

Re: Initialization error

Posted: Sun Apr 08, 2012 18:40
by minecrawlerx
There is no log

How can there be a log, if CEGUI does not even initialize???

Re: Initialization error

Posted: Sun Apr 08, 2012 22:14
by Kulik
If there is no log it is helpful to say so, I am not a prophet. This suggests that the error happens very early in the initialisation call. I would guess permissions (the log file can't be created).

Let me now highlight the other part of the message:
When asking for help: Please post your CEGUI.log and the text of any error or exception messages. Thank you!

If you still have trouble concentrating on reading the text, please let me know ;-)

Kulik wrote:PS: You have to catch the exception and inspect it.


Tell me the message of the exception. Call c_str() on it.

Re: Initialization error

Posted: Thu Apr 12, 2012 15:24
by minecrawlerx
Sorry, here is the error message:

DynamicModule::DynamicModule - Failed to load module 'CEGUIExpatParser_d': Unknown Error


Now I got it to work, sorry for me being stupid ;)