Page 1 of 1

Problems with loadWindowLayout

Posted: Tue May 16, 2006 13:31
by Executer
Hi everybody.

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.

Problems with loadWindowLayout

Posted: Thu May 25, 2006 09:58
by Executer
Hi everybody. :)

I have fonde the reason of this bug. But have no time to explore this problem more deep. But it is very interesting and usefull to know. May be somebody know why so happend:

I have used Layout with specific name when program fly out. When I have deleted the name and use uniq generated names by CEGUI -> program became work good.

Whate for your replise :)