Crash in RenderQueue::Draw

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

WaeCo
Just popping in
Just popping in
Posts: 1
Joined: Wed Dec 07, 2011 16:05

Crash in RenderQueue::Draw

Postby WaeCo » Wed Dec 07, 2011 16:14

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

Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests