【发布时间】:2013-11-15 05:36:40
【问题描述】:
method A()
{
try
{
Thread t = new Thread(new ThreadStart(B));
t.Start();
}
catch(exception e)
{
//show message of exception
}
}
method B()
{
// getDBQuery
}
B 中的异常但未被捕获。 在 .net 中是否合法?
【问题讨论】:
-
查看this question 的回答,了解从另一个线程获取异常的方法。
标签: c# multithreading try-catch