|
I have a very simple client/server solution that uses a wellknown singleton and a TcpChannel. Basically just copy/paste from the docs.
I noticed that when a client exists, the server throws twice an exception System.Net.Sockets.SocketException. I guess this is because it keeps a proxy to a client that does not exist anymore. These exceptions do not cause a crash, they are trapped inside remoting I think. They only appear in the debug output window.
This issue has been posted before, but no solution has been given.
So basically, if a client does Activator.GetObject(), how should it "disconnect" from the server so that the latter does not throw these exceptions? Personally I think this should automatically be handled when the proxy is garbage collected.
|