threads control线程退出问题

kingmax54212008 2010-04-19 02:13:34

我在每个线程里面都用了try {...}catch{...}, 这些异常每次都捕获了。为什么在若干次异常以后,线程还会退出呢?

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
The thread 0x11fc has exited with code 0 (0x0).
The thread 0x9d0 has exited with code 0 (0x0).
The thread 0x15ec has exited with code 0 (0x0).
The thread 0x1648 has exited with code 0 (0x0).
...全文
138 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kingmax54212008 2010-08-20
  • 打赏
  • 举报
回复
是网络终端的时候,会出现这问题。
xiaofengch 2010-08-19
  • 打赏
  • 举报
回复
我也同样碰到该问题, 不知楼主可解决没, 应该如何解决?
kingmax54212008 2010-04-19
  • 打赏
  • 举报
回复
为什么在若干次异常以后,线程还会退出呢?程序就没响应了。我用的Winform, framework是.net2.0。
各位高手,帮我一下!
zsuswy 2010-04-19
  • 打赏
  • 举报
回复
OK,占个位置,我也想知道。

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧