Ogre 3d and cegui runtime error
Posted: Fri Jul 04, 2014 00:22
Hello i am trying to get cegui 0.8.3 to work with ogre. I have added the CEGUIBase-0_d.lib; to my compilers additional dependencies. I have also added the path to the CEGUI inclue file for all of the headers like CEGUI.h. I have also added #include "cegui.h" to the top of my project.
I wrote this code into the CreateScene() of my game.
This error message pops up during early runtime of my ogre application.
there are no errors reported in my debugger.
does anyone know the cause of this? thanks
I wrote this code into the CreateScene() of my game.
Code: Select all
WindowManager& winMgr = WindowManager::getSingleton();
Window* myRoot = winMgr.createWindow( "DefaultWindow", "root" );
System::getSingleton().getDefaultGUIContext().setRootWindow( myRoot );
FrameWindow* fWnd = static_cast<FrameWindow*>(
winMgr.createWindow( "TaharezLook/FrameWindow", "testWindow" ));
myRoot->addChild( fWnd );
position a quarter of the way in from the top-left of parent.
fWnd->setPosition( UVector2( UDim( 0.25f, 0.0f ), UDim( 0.25f, 0.0f ) ) );
set size to be half the size of the parent
fWnd->setSize( USize( UDim( 0.5f, 0.0f ), UDim( 0.5f, 0.0f ) ) );
fWnd->setText( "Hello World!" );
This error message pops up during early runtime of my ogre application.
Assertion Failed!
Program: ...dio 2012\Projects\game2014\Debug\CEGUIBase-0_d.dll
File:C:\Users\john\Desktop\New Folder (5)\cegui.../Singleton.h
Line:79
Expression: ms_Singleton
For more information on how you program can cause an assertion
failure,see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
there are no errors reported in my debugger.
does anyone know the cause of this? thanks