Page 1 of 1

bootstrap crash

Posted: Sun Feb 20, 2011 03:57
by jarwulf
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?

Re: bootstrap crash

Posted: Sun Feb 20, 2011 08:27
by dermont
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");