BrrrBayBay.LogicPWMLib.LogicPwmDataGenerator.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            Disposed = true;

            synchronousByteBuffer = null;
            nextSyncByteBuffer = null;
            channelSettings = null;
        }

Usage Example

Example #1
0
        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();
        }