开发者

Clear out multicast listeners in .NET

开发者 https://www.devze.com 2023-02-15 16:51 出处:网络
I have a problem where sometimes when I call UdpClient.JoinMulticastGroup (.NET call), I get a \"system lacked sufficient buffer space or because a queue was full\" exception (details here).

I have a problem where sometimes when I call UdpClient.JoinMulticastGroup (.NET call), I get a "system lacked sufficient buffer space or because a queue was full" exception (details here).

Is there some SDK call where I can have it close all orphan multi-cast listeners? Or close all on a given addres开发者_如何学JAVAs/port?

I think I know the cause - it occurs when our program which has a worker thread listening on the multicast port is killed a couple of times in the debugger. If I do that enough, I then get this.

My question is how can I tell it to drop resources for apps that are dead? My app is a .NET Word AddIn.

thanks - dave

0

精彩评论

暂无评论...
验证码 换一张
取 消