无法从传输连接读取数据:阻塞操作被调用 WSACancelBlockingCall 中断 [英] Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall

查看:44
本文介绍了无法从传输连接读取数据:阻塞操作被调用 WSACancelBlockingCall 中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个客户端-服务器聊天应用程序,当我关闭客户端窗口时遇到以下异常.

I am developing a client-server chat application and I have encountered the following exception when I close the client window.

无法从传输连接读取数据:阻塞操作被调用 WSACancelBlockingCall 中断.

Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall.

知道可能是什么问题吗?

Any idea what could be the problem?

推荐答案

如果您对底层流的任何读者或作者调用 .Close().然后尝试使用该读取器或写入器,然后您将收到此错误.

If you call a .Close() on any of you readers or writers to the underlying stream. and try to use that reader or writer afterwards, then you will get this error.

这篇关于无法从传输连接读取数据:阻塞操作被调用 WSACancelBlockingCall 中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆