From 3dd07a6f43fc76033dff4ba67c1ce83ea403fe93 Mon Sep 17 00:00:00 2001 From: wj32 Date: Thu, 14 May 2009 08:44:15 +0000 Subject: [PATCH] icon updating is now done on the shared thread to avoid the GUI blocking when explorer.exe is suspended or is hanging git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1274 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/CHANGELOG.txt | 2 ++ trunk/ProcessHacker/UI/Icons/CpuUsageIcon.cs | 3 ++- trunk/ProcessHacker/UI/Icons/ProviderIcon.cs | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/trunk/CHANGELOG.txt b/trunk/CHANGELOG.txt index 00a3993cb..acacffde9 100644 --- a/trunk/CHANGELOG.txt +++ b/trunk/CHANGELOG.txt @@ -10,6 +10,8 @@ Process Hacker * Terminator test: TD1 (debugs a process and closes the debug object) * Terminator test: TT3 (TT1 is now completely user-mode) * Shows function file and line numbers where available + * Icon updating is now done on the shared thread to avoid the GUI + blocking when explorer.exe is suspended or is hanging * FIXED: * #2785648 - "cursor down crashes PH" * #2790404 - "System.InvalidOperationException" diff --git a/trunk/ProcessHacker/UI/Icons/CpuUsageIcon.cs b/trunk/ProcessHacker/UI/Icons/CpuUsageIcon.cs index b36c37339..ca311bce0 100644 --- a/trunk/ProcessHacker/UI/Icons/CpuUsageIcon.cs +++ b/trunk/ProcessHacker/UI/Icons/CpuUsageIcon.cs @@ -46,7 +46,8 @@ namespace ProcessHacker private void ProcessProvider_Updated() { - this.Parent.BeginInvoke(new MethodInvoker(this.ProviderUpdated)); + //this.Parent.BeginInvoke(new MethodInvoker(this.ProviderUpdated)); + this.ProviderUpdated(); } public bool Enabled diff --git a/trunk/ProcessHacker/UI/Icons/ProviderIcon.cs b/trunk/ProcessHacker/UI/Icons/ProviderIcon.cs index 441f49e5e..36c13861b 100644 --- a/trunk/ProcessHacker/UI/Icons/ProviderIcon.cs +++ b/trunk/ProcessHacker/UI/Icons/ProviderIcon.cs @@ -39,7 +39,8 @@ namespace ProcessHacker private void ProcessProvider_Updated() { - this.Parent.BeginInvoke(new MethodInvoker(this.ProviderUpdated)); + //this.Parent.BeginInvoke(new MethodInvoker(this.ProviderUpdated)); + this.ProviderUpdated(); } public bool Enabled