From 4795340999fe5ccf2a1b9789d2b8179c5097cefa Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Wed, 10 Aug 2016 14:15:48 +0800 Subject: [PATCH] Check whether form handle been created(#650) Signed-off-by: Syrone Wong --- shadowsocks-csharp/View/LogForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks-csharp/View/LogForm.cs b/shadowsocks-csharp/View/LogForm.cs index f804f781..d0818454 100644 --- a/shadowsocks-csharp/View/LogForm.cs +++ b/shadowsocks-csharp/View/LogForm.cs @@ -76,7 +76,7 @@ namespace Shadowsocks.View try { - if (trafficChart.InvokeRequired) + if (trafficChart.InvokeRequired && trafficChart.IsHandleCreated) { trafficChart.Invoke(new Action(() => {