其他分享
首页 > 其他分享> > 关闭NamedPipeClientStream时出现System.Net.Sockets.SocketException

关闭NamedPipeClientStream时出现System.Net.Sockets.SocketException

作者:互联网

尝试关闭管道客户端后,在输出控制台中看到以下错误:

A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in System.dll

这是什么意思?我该如何解决?

解决方法:

有关“首次机会异常”的说明,请参见http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx.

What is a first chance exception?
When an application is being debugged, the debugger gets notified whenever an exception is encountered At this point, the application is suspended and the debugger decides how to handle the exception. The first pass through this mechanism is called a “first chance” exception.

Depending on the debugger’s configuration, it will either resume the application and pass the exception on or it will leave the application suspended and enter debug mode. If the application handles the exception, it continues to run normally.

标签:socketexception,first-chance-exception,c
来源: https://codeday.me/bug/20191208/2088238.html