示例#1
0
 public virtual void Dispose()
 {
     App_delete(appPtr);
     appPtr = IntPtr.Zero;
     callbackHandler.Dispose();
     if (restartOnShutdown)
     {
         try
         {
             System.Diagnostics.ProcessStartInfo startInfo;
             if (restartAsAdmin)
             {
                 startInfo = RuntimePlatformInfo.RestartAdminProcInfo;
             }
             else
             {
                 startInfo = RuntimePlatformInfo.RestartProcInfo;
             }
             startInfo.Arguments = restartArgs;
             Process.Start(startInfo);
         }
         catch (Exception e)
         {
         }
     }
 }
示例#2
0
 public virtual void Dispose()
 {
     timer.removeBackgroundUpdateListener("Rendering", this);
     BulletScene_DestroyBulletScene(bulletScene);
     debugDraw.Dispose();
     Active = false;
     callbackHandler.Dispose();
 }