Dalon
06-02-2009 17:10:30
Hi,
I have a problem with destroying CaelumSystem. Well, I do it as described in the "tutorial" etc. by calling
Well, my problem is, that the whole application crashes, when the next frame is tried to be rendered...
Ogre.log:
If I just close the application by "return false;" in frameStarted in the main framelistener of my application,
anything works just fine, no crash...
Did I miss something?
I use these components when I initialize Caelum...
CAELUM_COMPONENT_SUN
CAELUM_COMPONENT_MOON
CAELUM_COMPONENT_SKY_DOME
CAELUM_COMPONENT_POINT_STARFIELD
And this is called after successfully initializing Caelum...
Any ideas? =/
I have a problem with destroying CaelumSystem. Well, I do it as described in the "tutorial" etc. by calling
m_pSkySysten->shutdown(false);
m_pSkySystem = NULL;
Well, my problem is, that the whole application crashes, when the next frame is tried to be rendered...
Ogre.log:
18:05:46: Caelum: Shutting down Caelum system...
18:05:46: Caelum: Delete UniversalClock
>... some own messages...<
18:05:47: Caelum: Delete UniversalClock
18:05:47: Caelum: CaelumSystem destroyed.
If I just close the application by "return false;" in frameStarted in the main framelistener of my application,
anything works just fine, no crash...
Did I miss something?
I use these components when I initialize Caelum...
CAELUM_COMPONENT_SUN
CAELUM_COMPONENT_MOON
CAELUM_COMPONENT_SKY_DOME
CAELUM_COMPONENT_POINT_STARFIELD
And this is called after successfully initializing Caelum...
Root::getSingletonPtr()->getAutoCreatedWindow()->addListener(m_pSkySystem);
Root::getSingletonPtr()->addFrameListener(m_pSkySystem);
Any ideas? =/