B
Bonj
Say if i have a function,
void FuncStart()
{
try
{
FuncDoActions();
//<nextlineofcode>
}
catch(ThreadAbortException)
{
Thread.ResetAbort();
}
}
If I start a thread by calling
System.Threading.Thread mythread = new
System.Threading.Thread(new System.Threading.ThreadStart
(FuncStart))
and then I call mythread.Abort(),
would the thread abort abruptly IN THE MIDDLE of
FuncDoActions, or would it complete to the end of
FuncDoActions() but just not do <nextlineofcode>?
If it makes any difference, the code to start the thread
will be in a different method of the same (thread-safe)
class that FuncStart is in.
void FuncStart()
{
try
{
FuncDoActions();
//<nextlineofcode>
}
catch(ThreadAbortException)
{
Thread.ResetAbort();
}
}
If I start a thread by calling
System.Threading.Thread mythread = new
System.Threading.Thread(new System.Threading.ThreadStart
(FuncStart))
and then I call mythread.Abort(),
would the thread abort abruptly IN THE MIDDLE of
FuncDoActions, or would it complete to the end of
FuncDoActions() but just not do <nextlineofcode>?
If it makes any difference, the code to start the thread
will be in a different method of the same (thread-safe)
class that FuncStart is in.