mr.Zog
30-10-2007 18:01:52
I've updated from around 224 to 231 and now I've got some serious problems: I can only get a minimum GUI to run, meaning a GUI manager with a sheet and a mouse cursor, like this:
If I try to add a label like this:
It crashes as soon as ogre wants to start rendering with
The ogre log doesn't give me any information. (no exception)
Now to the fun part: with Direct3D, it even crashes with the minimum GUI (the first code-block), saying farewell with
as you see, this time with an ogre exception...
Now, what I think is, that it might be a sort of "resource" problem.
Has anything been changed here?
As you can see in the commented part of the first line, I've also tried the default resource group as I add all resources with the CFG file.
Might this cause the problem?
The demo compiles, and actually I copied all the media from the demo media folders...
On the other side, if its a resource problem, why can I see the qgui mousecursor? (or if i apply mine, I see it also)
If I debug through the program and take a look at the menusheet when it is set to active by the guiManager, I see that there are several NULL pointers:
(doesnt matter if I create it with createSheet or getDefaultSheet)

Any suggestions?
I really don't know where to start, cause it all worked a few revisions ago
this->GUIManager = new QuickGUI::GUIManager();
this->GUIManager->init( RenderEngine::GetSingleton()->GetCamera()->getViewport(), "qgui" ,"quickgui" );// Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME );
this->GUIManager->setSceneManager( RenderEngine::GetSingleton()->GetSceneManager() );
//Create and init menu sheet:
//this->menuSheet = this->GUIManager->createSheet();
this->menuSheet = this->GUIManager->getDefaultSheet();
this->GUIManager->setActiveSheet( this->menuSheet );
If I try to add a label like this:
//What to create label:
QuickGUI::Label* whatToCreateLabel = this->menuSheet->createLabel();
whatToCreateLabel->setPosition( 25, 300 );
whatToCreateLabel->setText( "What to create:" );
whatToCreateLabel->setTexture( "" );
It crashes as soon as ogre wants to start rendering with
Assertion failed: pRep, file e:\projects\ogrecvs\branches\eihort_vc8_clean\ogren
ew\ogremain\include\ogresharedptr.h, line 134
The ogre log doesn't give me any information. (no exception)
Now to the fun part: with Direct3D, it even crashes with the minimum GUI (the first code-block), saying farewell with
18:46:00: OGRE EXCEPTION(3:RenderingAPIException): D3DXLoadSurfaceFromSurface failed in D3D9HardwarePixelBuffer::blitToMemory at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\rendersystems\direct3d9\src\ogred3d9hardwarepixelbuffer.cpp (line 486)
as you see, this time with an ogre exception...
Now, what I think is, that it might be a sort of "resource" problem.
Has anything been changed here?
As you can see in the commented part of the first line, I've also tried the default resource group as I add all resources with the CFG file.
Might this cause the problem?
The demo compiles, and actually I copied all the media from the demo media folders...
On the other side, if its a resource problem, why can I see the qgui mousecursor? (or if i apply mine, I see it also)
If I debug through the program and take a look at the menusheet when it is set to active by the guiManager, I see that there are several NULL pointers:
(doesnt matter if I create it with createSheet or getDefaultSheet)
Any suggestions?
I really don't know where to start, cause it all worked a few revisions ago
