From 6c6b92a308838a299cbb45219130a398835aca4b Mon Sep 17 00:00:00 2001 From: lindexi Date: Mon, 1 Apr 2024 11:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E9=87=8A=E6=94=BE=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs b/UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs index 1fa8c57..0e5b9af 100644 --- a/UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs +++ b/UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs @@ -68,7 +68,11 @@ private async Task RefreshProcessInfoList() #endif - await Parallel.ForEachAsync(processes, async (process, _) => { await PeekProcess(process); }); + await Parallel.ForEachAsync(processes, async (process, _) => + { + await PeekProcess(process); + process.Dispose(); + }); } private async Task PeekProcess(Process process)