Page 1 of 1

Crash in RenderQueue::Draw

Posted: Wed Dec 07, 2011 16:14
by WaeCo
hello
im new in using CEGUI
i init cegui with:

Code: Select all

mRenderer = &CEGUI::OgreRenderer::bootstrapSystem();
   mSystem = CEGUI::System::getSingletonPtr();

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

   CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme");
   mSystem->setDefaultMouseCursor("TaharezLook", "MouseArrow");

   mRootWin = CEGUI::WindowManager::getSingleton().createWindow("DefaultWindow", "RootWindow");
   mSystem->setGUISheet( mRootWin );


in the first frame after start the aplication crashes in RenderQueue::Draw
with a access violation in the loop

an other error appears when i try to create an other window with

Code: Select all

CEGUI::FrameWindow* fWnd = static_cast<CEGUI::FrameWindow*>(
      CEGUI::WindowManager::getSingleton().createWindow( "TaharezLook/FrameWindow", "testWindow" ));
   mRootWin->addChildWindow( fWnd );
   // position a quarter of the way in from the top-left of parent.
   fWnd->setPosition( CEGUI::UVector2( CEGUI::UDim( 0.25f, 0 ), CEGUI::UDim( 0.25f, 0 ) ) );

   // set size to be half the size of the parent
   fWnd->setSize( CEGUI::UVector2( CEGUI::UDim( 0.5f, 0 ), CEGUI::UDim( 0.5f, 0 ) ) );
   fWnd->setText( "Hello World!" );


error:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

in Window::allocateRenderingWindow() at System::getSingleton().getRenderer()->createTextureTarget();

can somebody help me pls

WaeCo