public void UpdateCodeText(string codeText) { if (Job != null) { Job.Terminate(); scanResult = null; // ditch any previous results. // Abandon to the garbage collector. Job = null; } CodeText = codeText; Job = new CloneFinderJob(codeText); Job.JobDone += OnJobDone; Job.Start(); }