Code: Select all
guiRenderer = new CEGUI::OgreCEGUIRenderer(window);
guiRenderer->setTargetRenderQueue( Ogre::RENDER_QUEUE_OVERLAY, true );
guiRenderer->setTargetSceneManager(sceneManager);
guiSystem = new CEGUI::System(guiRenderer);
CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
CEGUI::SchemeManager::getSingleton().loadScheme("TaharezLook.scheme"); //crashes here
But when it tries to load the scheme it crashes with this error:
Code: Select all
../../include/CEGUISingleton.h:79: static T& CEGUI::Singleton<T>::getSingleton() [with T = CEGUI::Logger]: Assertion `ms_Singleton' failed.
Aborted (core dumped)
Only the thing is, I know that the CEGUI::Logger singleton is there because the system is logging away happily before this error. The end of my CEGUI log looks like this:
Code: Select all
16/05/2007 20:16:49 (InfL1) CEGUI::System singleton created.
16/05/2007 20:16:49 (InfL1) ---- CEGUI System initialisation completed ----
16/05/2007 20:16:49 (InfL1) ---- Version 0.5.0 ----
16/05/2007 20:16:49 (InfL1) ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
16/05/2007 20:16:49 (InfL1) ---- XML Parser module is: CEGUI::XercesParser - Official Xerces-C++ based parser module for CEGUI ----
16/05/2007 20:16:49 (InfL1) ---- Scripting module is: None ----
16/05/2007 20:16:49 (InfL1) Attempting to load Scheme from file 'SleekSpace.scheme'.
Could something be deleting the ms_Singleton pointer? Or could it be a problem with the schemeManager not looking at the same static object, or am I doing this completely wrong, or what? Any comments are appreciated.