Example #1
0
        public void OnStopGlide()
        {
            BoogieCore.Log(LogType.System, "Inside OnStopGlider()");


            WantedState = RunState_e.Stopped;
            RunState    = RunState_e.Stopped;

            SaveAllState();


            if (world != null)
            {
                world.Close();
            }



            BoogieCore.Log(LogType.System, "TotalMemory " + System.GC.GetTotalMemory(false) / (1024 * 1024) + " MB");
            world = null; // release RAM

            BoogieCore.Log(LogType.System, "TotalMemory after GC " + System.GC.GetTotalMemory(true) / (1024 * 1024) + " MB");
        }