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 @@
-
+
+