Пример #1
0
        /// <summary>
        /// Resets this instance.
        /// </summary>
        public void Reset()
        {
            try
            {
                PcanBasicDllWrapper.Uninitialize(this.MPcanHandle);

                this.Do(); // handle neu schreiben??!! todo mb. evtl das reset impliziert?
            }
            catch (Exception e)
            {
                this.Logger.LogError(e);
                throw;
            }
        }
Пример #2
0
 /// <summary>
 ///     Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     try
     {
         lock (LockDispose)
         {
             PcanBasicDllWrapper.Uninitialize(PcanBasicDllWrapper.PCAN_NONEBUS);
         }
     }
     catch (Exception e)
     {
         this.Logger.LogError(e);
         throw;
     }
 }