Exemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_trackWriter != null)
         {
             _trackWriter.Dispose();
             _trackWriter = null;
         }
         if (_imageWriter != null)
         {
             _imageWriter.Dispose();
             _imageWriter = null;
         }
         if (_laser != null)
         {
             _laser.Dispose();
         }
         if (_scanner != null)
         {
             _scanner.Dispose();
         }
     }
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_trackWriter != null)
         {
             _trackWriter.Dispose();
             _trackWriter = null;
         }
         if (_imageWriter != null)
         {
             _imageWriter.Dispose();
             _imageWriter = null;
         }
         if (_backgroundWriter != null)
         {
             _backgroundWriter.Dispose();
             _backgroundWriter = null;
         }
         if (_laser != null)
         {
             _laser.Dispose();
         }
         if (_scanner != null)
         {
             _scanner.Dispose();
         }
         if (_camRegion != null)
         {
             _camRegion.Dispose();
             _camRegion = null;
         }
     }
 }