public void Dispose() { Disposed = true; synchronousByteBuffer = null; nextSyncByteBuffer = null; channelSettings = null; }
public void Dispose() { this.Disconnect(); Thread.Sleep(100); // Allow the PWM generator to fully stop pwmGenerator.Dispose(); pwmGenerator = null; logicDevice = null; deviceConnector = null; running = false; GC.Collect(); }