Don't know if this will help but worth a try:
http://www.foxite.com/archives/winsock-when-close-tcp-connection-hangs-0000039744.htmI know you could probably run a DOS command (netstat) to kill the connection - would not be the cleanest way to do it of course..but it might work...haha
http://answers.yahoo.com/question/index?qid=20060924051959AAJWCaX>Hi all,
>
>i have the next problem. On my form there is an ocx "TCPHost". I don't know where it come from but i guess its from Microsoft.
>
>This ocx is implemented in lots of forms. Now i have to make a modification to the existing program and change the program in a way
>
>that it can work with several tcp/ip's.
>
>When i make 2 instances of the form in runtime the second form gives an error like '... adress already in use'. When i look to my code i see t
>
>that the both forms have there own address.
>
>When i use a networksniffer i see that when i run one instance and close the form the communication stay's active. So i guess my problem
>
>starts there.
>
>I tried to close the communication of the ocx in the destroy methode of my form but that doesnt work. When i close the foxpro program even
>
>then te communication continues....
>
>Somebody has a clue how to shut down this communication ?
>
>
>thnx
ICQ 10556 (ya), 254117