bootstrap crash

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

jarwulf
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Fri May 14, 2010 04:27

bootstrap crash

Postby jarwulf » Sun Feb 20, 2011 03:57

Hi, I'm getting a crash at

Code: Select all

   m_pTimer = new Ogre::Timer();
   m_pTimer->reset();
/*
   m_pGUIRenderer = new CEGUI::OgreCEGUIRenderer(m_pRenderWnd, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, 0);
    m_pGUISystem = new CEGUI::System(m_pGUIRenderer);
*/
[i]>>> (breakpoint)[/i]   m_pGUIRenderer = &CEGUI::OgreRenderer::bootstrapSystem(*m_pRenderWnd);
    m_pGUISystem = CEGUI::System::getSingletonPtr();

   CEGUI::SchemeManager::getSingleton().create((CEGUI::utf8*)"TaharezLookSkin.scheme");
   CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"AdvancedOgreFramework.layout");
   CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"AdvancedOgreFramework_Game.layout");


It auto breaks here



Code: Select all

DemoApp::~DemoApp()
{
   delete OgreFramework::getSingletonPtr();
[i]>>>(autobreak)[/i]   delete m_pAppStateManager;
}


Any clue as to what might be wrong?

User avatar
dermont
Quite a regular
Quite a regular
Posts: 75
Joined: Mon Aug 29, 2005 16:15

Re: bootstrap crash

Postby dermont » Sun Feb 20, 2011 08:27

You probably have to set the resource groups before creating your scheme:

Code: Select all

CEGUI::Imageset::setDefaultResourceGroup("Imagesets");
CEGUI::Font::setDefaultResourceGroup("Fonts");
CEGUI::Scheme::setDefaultResourceGroup("Schemes");
CEGUI::WidgetLookManager::setDefaultResourceGroup("LookNFeel");
CEGUI::WindowManager::setDefaultResourceGroup("Layouts");


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests