/// <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; } }
/// <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; } }