Hello,
We use Visual Studio 2005 and C# to develop an application that interfaces with biomedical device firmware. The firmware sends serial communication messages to the C# application, which then parses the message streams. We routinely get the following error message:
Unhandled Exception: System.ObjectDisposedException: Safe handle has been closed at Microsoft.Win32.UnsafeNativeMethods.GetOverlappedResult(SafeFileHandle hFi le, NativeOverlapped* lpOverlapped, Int32& lpNumberOfBytesTransferred, Boolean b Wait) at System.IO.Ports.SerialStream.EventLoopRunner.WaitForCommEvent() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
We're having trouble finding out where in the code this exception is thrown, and it's not clear why it's generated. Does anyone have ideas on how to isolate where in code the error is generated Or what might cause this error
Visual C#6
|