Pavol

Pavol

  • NA
  • 23
  • 6.2k

Abort thread dont work.

Jul 24 2013 6:00 AM
Hi
Abort() thread dont work.
I got the following code:

class communication

private UdpClient client;

{

public communication()

{
    t = new Thread(new ThreadStart(listen));

}

public void listen()

{......}

}


and in form1 i got the code:

communication com=new commnunication();

com.t.Start();     //start thread works

.

.

.

any code

com.t.Abort();     //abort thread dont works

Why dont works abort thread?




Answers (2)