Initialization error

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

minecrawlerx
Just popping in
Just popping in
Posts: 6
Joined: Sun Apr 08, 2012 16:46

Initialization error

Postby minecrawlerx » Sun Apr 08, 2012 16:59

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!

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Initialization error

Postby Kulik » Sun Apr 08, 2012 18:33

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.

minecrawlerx
Just popping in
Just popping in
Posts: 6
Joined: Sun Apr 08, 2012 16:46

Re: Initialization error

Postby minecrawlerx » Sun Apr 08, 2012 18:40

There is no log

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

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Initialization error

Postby Kulik » Sun Apr 08, 2012 22:14

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.

minecrawlerx
Just popping in
Just popping in
Posts: 6
Joined: Sun Apr 08, 2012 16:46

Re: Initialization error

Postby minecrawlerx » Thu Apr 12, 2012 15:24

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 ;)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests