thread.Abort() の後はどうなりますか??
私が持っていると言う:
Thread mWorker = new Thread(new ThreadStart(this.run));
..
mWorker.Start();
**where**
private void run()
{
Logger.d(TAG, "run()");
...
try {
while (this.mRunning){
...
}
} catch (ThreadAbortException tae){
Logger.e(TAG,"some msg", tae);
this.doSomething();
} catch (IOException ioe){
Logger.e(TAG,"some msg", ioe);
this.doSomething();
} catch (Exception e){
Logger.e(TAG,"some msg", e);
this.doSomething();
} finally {
gracefoulyClose();
}
Logger.d(TAG, "run() - ended");
}
スレッドはより複雑です..しかし、本質的なものはここに表示されます。では、Abort() が呼び出されるとどうなるでしょうか。私のキャッチは機能し、doSomething() の呼び出しを続行しますか?
私はまだコンソールで受け取っているので:
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
しかし、私にはそのためのキャッチがあります。私じゃないの??