Exemple #1
0
 public void Dispose()
 {
     try
     {
         if (!Disposed)
         {
             VoltagesReal.Dispose();
             VoltagesIm.Dispose();
             CurrentsReal?.Dispose();
             CurrentsIm.Dispose();
             Saturation.Dispose();
             Timestamps.Dispose();
             PacketIds?.Dispose();
             ElectrodeTaskWriter.Dispose();
             Hdf5.CloseGroup(GroupId);
             Disposed = true;
         }
     }
     catch (Exception e)
     {
         Logger.LogError($"Error during dispose of EIT: {e.Message}");
     }
 }