ncannasse 8 år sedan
förälder
incheckning
e654c39861
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      hxd/System.hx

+ 6 - 1
hxd/System.hx

@@ -553,7 +553,12 @@ class System {
 	}
 	}
 
 
 	public static function exit() {
 	public static function exit() {
-		Sys.exit(0);
+		try {
+			Sys.exit(0);
+		} catch( e : Dynamic ) {
+			// access violation sometimes ?
+			exit();
+		}
 	}
 	}
 
 
 	public static function getClipboard() : String {
 	public static function getClipboard() : String {