c# - .NET Remoting Singleton memory leak, TCP, Marshal by Reference -
I am using the simplest example of remoting which I can get, a window service and a Windows form program Sharing the middle item (client), running on the same machine. The service instantates the object in this way: serviceConfigRemote = new serviceContentDataTermot (); ServerChannel = new TcpServerChannel (9 090); ChannelServices.RegisterChannel (server channel, incorrect); Remoting Services Marshall (this. ServiceConfigRemote, "ServiceConfigData"); The client establishes a connection like this: TcpClientChannel channel = new TcpClientChannel (); ChannelServices.RegisterChannel (channel, incorrect); ConfigData = (serviceConfigDataRemote) Activator.GetObject (typef (serviceConfigDataRemote), "tcp: // localhost: 9090 / service configuration data"); This idea is for service to change some parameters of the object, because the client is able to read those changes. The object is itself: Public Seal Class Service Confidentiality: Martial Biriff Obj...