I have some problems with multiple loading layout. I am creating latout
Code: Select all
CEGUI::WindowManager* mgr = CEGUI::WindowManager::getSingletonPtr();
m_window = mgr->loadWindowLayout("LoadingScreen.layout");
Then I am destroy it
Code: Select all
CEGUI::WindowManager::getSingleton().destroyWindow(m_window);
And do it several times. On the third or fifs or another time programs fly out with such error in log:
Code: Select all
WindowManager::loadWindowLayout - loading of layout from file 'LoadingScreen.layout' failed.

Can anybody explain - why so happend?
Thanks.