stealth977
25-01-2009 15:20:57
Err, Umm, Yep I know I complain A LOT!!
But here is another little but a nasty crasher bug which you may never realise unless Hydrax is used in an editor and instantiated more then once during the lifetime of the application....
You remember a line in Hydrax::create() as:
Umm, where is the corresponding:
in Hydrax::remove?????
since the listener stays active, when i terminate the scene and reload another scene with a Hydrax object in it, RenderSytem still tries to inform the old and deleted hydrax object...and bang, crash....
I fixed it by adding a corresponding removeListener() in Hydrax::remove(), I suggest you do the same
Keep up the good work...
Stealth,
But here is another little but a nasty crasher bug which you may never realise unless Hydrax is used in an editor and instantiated more then once during the lifetime of the application....
You remember a line in Hydrax::create() as:
(Line 142, Hydrax.cpp)
Ogre::Root::getSingleton().getRenderSystem()->addListener(&mDeviceRestoredListener);
Umm, where is the corresponding:
Ogre::Root::getSingleton().getRenderSystem()->removeListener(&mDeviceRestoredListener);
in Hydrax::remove?????
since the listener stays active, when i terminate the scene and reload another scene with a Hydrax object in it, RenderSytem still tries to inform the old and deleted hydrax object...and bang, crash....
I fixed it by adding a corresponding removeListener() in Hydrax::remove(), I suggest you do the same
Keep up the good work...
Stealth,