首页 新闻 赞助 找找看

程序奔溃,捕获到的错误信息,应该如何处理,应该是串口SerialPort类的使用相关。

0
悬赏园豆:10 [待解决问题]

2021-01-12 15:39:38 CurrentDomain_UnhandledException Stack(WriteModuleLogLn CurrentDomain_UnhandledException )
2021-01-12 15:39:38 System.ObjectDisposedException: 已关闭 Safe handle
在 System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
在 System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
在 Microsoft.Win32.UnsafeNativeMethods.GetOverlappedResult(SafeFileHandle hFile, NativeOverlapped* lpOverlapped, Int32& lpNumberOfBytesTransferred, Boolean bWait)
在 System.IO.Ports.SerialStream.EventLoopRunner.WaitForCommEvent()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart() Stack(WriteModuleLogLn CurrentDomain_UnhandledException )

小徐的工作学习随笔的主页 小徐的工作学习随笔 | 初学一级 | 园豆:183
提问于:2021-01-13 13:54
< >
分享
所有回答(1)
0

应该打开vs然后去改代码和调试.

czd890 | 园豆:14292 (专家六级) | 2021-01-13 14:42
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册