Closing TCPChannel object

  • Thread starter A J Le Couteur Bisson
  • Start date
A

A J Le Couteur Bisson

I have the following TCPChannel instantiation in my program

TcpChannel chan = new TcpChannel(port);

Unfortunately, chan remains open for some time after the application has
terminated and this prevents it from being restarted.

TcpChannel does not implement IDisposable and its StopListening() method
doesn't close the port. How can I force it to let go?



Thanks,

Andy
 
C

Carl Prothman [MVP]

A J Le Couteur Bisson said:
I have the following TCPChannel instantiation in my program
TcpChannel chan = new TcpChannel(port);
Unfortunately, chan remains open for some time after the application has
terminated and this prevents it from being restarted.
TcpChannel does not implement IDisposable and its StopListening() method
doesn't close the port. How can I force it to let go?

Andy,
I recommend you ask your Remoting question over in the following newsgroup:
microsoft.public.dotnet.framework.remoting

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top