I'm getting the following exception:
Exception of type ThreadAbortException occurred: System.Threading.ThreadAbortException: ThreadAbortException
at System.Threading.EventWaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
at MyCode.ProcessEvents()
And I'm confused about how it could happen. I'm sure that I'm not aborting this particular thread, though my code could be aborting a different one (including the thread that sets the WaitHandle). This leads me to believe that either the framework is raising the exception or a threadabortexception for a different thread is bleeding out into this one somehow. Neither of which I thought were possible.
So, If I am not calling Thread.Abort() on this thread, how can it end up with a ThreadAbortException?
WaitOne
? – Benzene