protected override bool HandleErrorSituation( string msg, bool isWrite ) { if(Marshal.GetLastWin32Error() == NativeMethods.ERROR_OPERATION_ABORTED) { NativeMethods.COMSTAT cs = new NativeMethods.COMSTAT(); cs.Initialize(); uint errors; NativeMethods.ClearCommError( m_handle.DangerousGetHandle(), out errors, ref cs ); return true; } return base.HandleErrorSituation( msg, isWrite ); }