Crash when exiting application.

PapiRauk

24-10-2006 12:55:54

I'm using a statemanager and multiple scenemanagers for the different states.
Each state loads the geometry, lights, vehicle, world and so on.
When exiting from a state with the prefab vehicle and ogreode world, it crashes.
At work right now so i dont have the code but could you tell me the proper way to destroy everything ogreode and unload it?

Does delete mVehicle and delete mWorld do it or should i call something else manualy?

tuan kuranes

24-10-2006 13:16:29

Does delete mVehicle and delete mWorld do it or should i call something else manualy?
That should be ok.

Need more info on the crash or a way to reproduce it.

Happy-Howard

01-12-2006 07:04:14

You probably know this already but make sure you always delete mWorld after mVehicle.