What does Blinker.Stop do? One thing you'll run into is the only thing you'll be able to do with this thread while it's blocked on Thread.Sleep is to terminate it abnormally. There is, of course, no way to do this in the framework (without using PInvoke). So, a couple of suggestions: don't use Thread.Sleep (except Thread.Sleep(1)) [1] and use a cooperative method of stopping the thread. See http://msmvps.com/blogs/peterritchie/archive/2006/10/13/_2700_System.Thread ing.Thread.Suspend_280029002700_-is-obsolete_3A00_-_2700_Thread.Suspend- has-been-deprecated_2E002E002E00_.aspx for an example of this.
I don't like using Thread.Abort (and the ThreadAbortException) because of various issues [2] [1] http://www.bluebytesoftware.com/blog/PermaLink,guid,1c013d42-c983-4102- 9233-ca54b8f3d1a1.aspx [2] http://msmvps.com/blogs/peterritchie/archive/2007/08/22/thead-abort-is- a-sign-of-a-poorly-designed-program.aspx =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com