neoranga
24-06-2009 07:14:32
Hi,
Im using ogre 1.6 with myGUI 2.2.2.
Here are some piece of code og my project.
Everything is good when i comment "mGUI->injectFrameEntered(evt.timeSinceLastFrame);"
[attachment=1]s1.jpg[/attachment]
But it crash when i uncomment the line :
[attachment=0]s2.jpg[/attachment]
Here is the ogre.log file
And MyGUI.log's last lines
OMG !!!! My bad, i constructed my object into create scene method so it die when the method is done, so MyGUI makes the whole app die !!
<3 MyGUI
Im using ogre 1.6 with myGUI 2.2.2.
Here are some piece of code og my project.
bool frameStarted(const FrameEvent& evt)
{
bool ret = ExampleFrameListener::frameStarted(evt);
//------------------------------------------------------------------------
mKeyboard->capture();
mMouse->capture();
LogManager::getSingleton().logMessage(LML_NORMAL, "Before injecting time gui");
mGUI->injectFrameEntered(evt.timeSinceLastFrame);
LogManager::getSingleton().logMessage(LML_NORMAL, "After injecting time gui");
}
virtual void createScene(void)
{
MyGUI::Gui * mGUI = new MyGUI::Gui();
LogManager::getSingleton().logMessage(LML_NORMAL, "New gui");
mGUI->initialise(mWindow,"core.xml","General");
// load layout
MyGUI::LayoutManager::getInstance().load("infoWindow.layout");
}
Everything is good when i comment "mGUI->injectFrameEntered(evt.timeSinceLastFrame);"
[attachment=1]s1.jpg[/attachment]
But it crash when i uncomment the line :
[attachment=0]s2.jpg[/attachment]
Here is the ogre.log file
10:21:18: *** Initializing OIS ***
10:21:18: Before injecting time gui
And MyGUI.log's last lines
10:21:15 | General | Info | Font 'Default' using texture size 1024 x 128 | .\src\MyGUI_Font.cpp | 205
10:21:15 | General | Info | Font 'Default' using real height 17 pixels | .\src\MyGUI_Font.cpp | 206
OMG !!!! My bad, i constructed my object into create scene method so it die when the method is done, so MyGUI makes the whole app die !!
<3 MyGUI