Example #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     update.Abort();
     personData.Dispose();
     personModule.Dispose();
     faceData.Dispose();
     blobData.Dispose();
     sm.Dispose();
 }
Example #2
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Behaviour.run = false;
            update.Abort();
            personData.Dispose();
            personModule.Dispose();
            faceData.Dispose();
            sm.Dispose();

            IRobotCreate.SetDrive(0, 0); //To Stop iRobot
        }