摘要:
C#在关闭窗体的时候,有时线程还在后台执行,没有及时退出。 处理方案: 为Form添加FormClosing事件,加入以下语句,在退出时,杀死本进程。 System.Diagnostics.Process.GetCurrentProcess().Kill(); ---------------------------------------------------------------------------------- System.Environment.Exit(0); 阅读全文
posted @ 2012-10-18 18:02
zagelover
阅读(591)
评论(0)
推荐(0)

浙公网安备 33010602011771号