ncannasse 8 years ago
parent
commit
e654c39861
1 changed files with 6 additions and 1 deletions
  1. 6 1
      hxd/System.hx

+ 6 - 1
hxd/System.hx

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