c# instantly kill thread with TerminateThread (danger)
摘要:
Danger: dead lock or mem leakuse only as Process.Kill() to exit app with defined exit code [DllImport("kernel32.dll")]staticexternboolTerminateThread(inthThread,uintdwExitCode);//[STAThread]staticvoidMain(string[]args){try{Threadt=newThread(()=>{//codeeveninterop});t.IsBackground=true;/ 阅读全文
posted @ 2012-03-14 11:55 无法显示此网页 阅读(751) 评论(0) 推荐(1) 编辑