HighTechTalks DotNet Forums  

Closing TCPChannel object

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Closing TCPChannel object in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
A J Le Couteur Bisson
 
Posts: n/a

Default Closing TCPChannel object - 07-14-2003 , 09:27 AM






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



Reply With Quote
  #2  
Old   
Carl Prothman [MVP]
 
Posts: n/a

Default Re: Closing TCPChannel object - 07-14-2003 , 03:39 PM






"A J Le Couteur Bisson" <noone (AT) nowhere (DOT) com> wrote
Quote:
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






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.