PC Review


Reply
Thread Tools Rate Thread

thread.abort and thread.suspend

 
 
am
Guest
Posts: n/a
 
      2nd Sep 2005
Hi to all.
I have a little problem. I'm working with threads, and I need to abort
or suspend them, but many experts dissuade from use Thread.Abort and
Thread.Suspend. As I didn't find other way, how can I do?
Thanks a lot!

 
Reply With Quote
 
 
 
 
Jan
Guest
Posts: n/a
 
      2nd Sep 2005
Hey am

You could try communicating with the threads using a ManualRestEvent.
That way the threads could listen for your signal and then terminate
themselves.

Jan

 
Reply With Quote
 
am
Guest
Posts: n/a
 
      2nd Sep 2005
Sorry, I can't understand how I should do. The thread should work until
I need to suspend or abort it (only if I need, otherwise it should
continue until it ends). With ManualResetEvent the thread would wait
the signal, doing nothing. Does it?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread: Thread.Abort() and SmtpMail does not work thougether? =?Utf-8?B?V2lsbHkgUw==?= Microsoft Dot NET Framework 4 13th Jan 2006 04:30 PM
thread.abort and thread.suspend am Microsoft C# .NET 1 2nd Sep 2005 02:46 PM
Calling Thread.Suspend and it's affect on the target thread... Paul Tomlinson Microsoft C# .NET 1 4th Feb 2005 12:14 AM
Difference between Abort and Suspend of Thread Franz Microsoft Dot NET Framework 5 2nd Oct 2003 10:14 AM
Re: catching thread.abort or why does my thread stop when it's not supposed to Stephan Steiner Microsoft C# .NET 0 17th Jul 2003 11:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:23 AM.