Thread.Abort () is what you're looking for.

Alternatively you can switch to using asynchronous IO if you're interested
in exploring a whole new world of weird and wonderful debugging scenarios.

Piers.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Antonio Mart�nez
�lvarez
Sent: Monday, March 15, 2004 1:01 PM
To: Mono-List
Subject: [Mono-list] About killing a thread.

Hello.

How do I kill a thread?
I have a thread which is always listing a tcp port (blocked), and I want it
to termitate when the application exit.

Thanks

--
Antonio Martínez
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to