From c2d0d619ac3fb70145b585083b7db3b0e9fea7e7 Mon Sep 17 00:00:00 2001 From: fonaix Date: Fri, 7 Apr 2023 20:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E4=BC=98=E5=8C=96=20#3632=20?= =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E5=8C=96=E6=97=B6=E5=86=85=E5=AD=98=E5=8D=A0?= =?UTF-8?q?=E7=94=A8100+=EF=BC=8C=E5=90=8E=E5=8F=B0=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E5=86=85=E5=AD=98=E5=8D=A0=E7=94=A810+?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2rayN/v2rayN/App.xaml.cs | 5 ++++- v2rayN/v2rayN/v2rayN.csproj | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/v2rayN/v2rayN/App.xaml.cs b/v2rayN/v2rayN/App.xaml.cs index 810f08fc..bc2a656e 100644 --- a/v2rayN/v2rayN/App.xaml.cs +++ b/v2rayN/v2rayN/App.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +using Lierda.WPFHelper; +using System.Windows; using System.Windows.Threading; using v2rayN.Handler; using v2rayN.Mode; @@ -13,6 +14,7 @@ namespace v2rayN { public static EventWaitHandle ProgramStarted; private static Config _config; + LierdaCracker lierdaCracker=new LierdaCracker(); public App() { @@ -28,6 +30,7 @@ namespace v2rayN /// protected override void OnStartup(StartupEventArgs e) { + lierdaCracker.Cracker(30); //内存回收,每30秒回收一次 Global.ExePathKey = Utils.GetMD5(Utils.GetExePath()); var rebootas = (e.Args ?? new string[] { }).Any(t => t == Global.RebootAs); diff --git a/v2rayN/v2rayN/v2rayN.csproj b/v2rayN/v2rayN/v2rayN.csproj index cc7cad49..58e52cbc 100644 --- a/v2rayN/v2rayN/v2rayN.csproj +++ b/v2rayN/v2rayN/v2rayN.csproj @@ -14,7 +14,8 @@ - + +