From 6cbe9f9d2a604cdbb74f46f3710ea3dc60a87e55 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 27 Aug 2017 06:51:36 +0200 Subject: first step in implementing a dispose mechanism for graphic objects --- src/CrowThread.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/CrowThread.cs') diff --git a/src/CrowThread.cs b/src/CrowThread.cs index 857ec1a3..fbcdc956 100644 --- a/src/CrowThread.cs +++ b/src/CrowThread.cs @@ -33,6 +33,7 @@ namespace Crow /// Thread monitored by current interface with Finished event when state==Stopped /// public class CrowThread { + public bool cancel = false; Thread thread; public event EventHandler Finished; public GraphicObject Host; @@ -53,6 +54,7 @@ namespace Crow public void Start() { thread.Start();} public void Cancel(){ if (thread.IsAlive){ + cancel = true; //cancelLoading = true; thread.Join (); //cancelLoading = false; -- cgit v1.3.1-4-g156e