Hi,
Yes, it can.
Add a try/catch handler to your thread, i.e:
Init socket
try
{
...
}
catch (ThreadAbortException ex)
{
// dispose here
}
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
"fjlpf" <an*******@discussions.microsoft.com> wrote in message
news:3d****************************@phx.gbl...
I create a new thread, and in it, create a socket.
Now I want to terminate the thread in main thread, but
can the socket be disposed automaticly?
If it can't, how can I manage this situation?
Thanks in advance!