/// <summary> /// Finaliza la ejecuciĆ³n de la aplicacion /// </summary> internal void shutDown() { if (currentExample != null) { currentExample.close(); } tgcD3dDevice.shutDown(); texturesPool.clearAll(); }
/// <summary> /// Finaliza la ejecuciĆ³n de la aplicacion /// </summary> public void shutDown() { if (currentExample != null) { currentExample.close(); } tgcD3dDevice.shutDown(); texturesPool.clearAll(); MainForm.ApplicationRunning = false; //Matar proceso principal a la fuerza Process currentProcess = Process.GetCurrentProcess(); currentProcess.Kill(); }