110,580
社区成员
发帖
与我相关
我的任务
分享
Thread.IsBackground=true
默认开启的线程为前台线程。static void Main()
{
// TODO: Handle unhandled exceptions
Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
object temp2 = null;
string temp1 = temp2.ToString();