private void Form1_Closing(object sender, CancelEventArgs e) { myJobManager.UserResultAvailable -= new CogJobManager.CogUserResultAvailableEventHandler(myJobManager_UserResultAvailable); cogRecordDisplay1.Dispose(); // Be sure to shudown the CogJobManager!! myJobManager.Shutdown(); }
private void Form1_Closing(object sender, CancelEventArgs e) { timer1.Stop(); cogRecordDisplay1.Dispose(); // Be sure to shudown the CogJobManager! myJobManager.Shutdown(); thread1.Abort(); }