If a thread is running a function func1
that calls another function func2
inside it...
Then I called thread.Abort()
Will this stop func1
only
OR func1
and func2
and all the functions func1
has called??
Thanks
Edit: Here are more detail:
func1
is called in a new thread, it continuously calls func2
on regular basis...
func2
begin doing some work only if some array is not null.. it finishes it and return
When supervisor wants to save data, it aborts Thread of func1
- and then makes array null, saves data, then fill in the array with new one.. and starts Thread with func1
again..
Sometimes exception is raised because array is null in func2
.. so func1 abort did not affect func2