We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a0a93 commit 9039d40Copy full SHA for 9039d40
v2rayN/v2rayN/App.xaml.cs
@@ -58,10 +58,12 @@ private void Init()
58
Environment.Exit(0);
59
return;
60
}
61
- //if (RuntimeInformation.ProcessArchitecture != Architecture.X86 && RuntimeInformation.ProcessArchitecture != Architecture.X64)
62
- //{
63
- // _config.guiItem.enableStatistics = false;
64
- //}
+
+ //Under Win10
+ if (Environment.OSVersion.Version.Major < 10)
+ {
65
+ Environment.SetEnvironmentVariable("DOTNET_EnableWriteXorExecute", "0", EnvironmentVariableTarget.Process);
66
+ }
67
68
69
private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
0 commit comments