W
Wayne M J
I have been using threads on and off, but I am always coming across a
situation that baffles me: where is the best place to put a Thread.Abort()
call?
I have a form, when the button event is fired, a thread is created, and it
will continue on its merry way until I force the thread to `die` via the
IDE.
I have in the past used Form_Close and Form_Closing as 2 locations for the
Thread.Abort() call, but in recent times, I have found that it does not
always work, but for the most part it works fine.
situation that baffles me: where is the best place to put a Thread.Abort()
call?
I have a form, when the button event is fired, a thread is created, and it
will continue on its merry way until I force the thread to `die` via the
IDE.
I have in the past used Form_Close and Form_Closing as 2 locations for the
Thread.Abort() call, but in recent times, I have found that it does not
always work, but for the most part it works fine.