关于System.Diagnostics.Process的高级问题
我用System.Diagnostics.Process启动了另一个test.exe。现在我需要监测test.exe(因为test.exe可能因为未知的原因而挂掉),一旦test.exe出现异常挂掉,我就重起它。目前我不知道该如何监测test.exe,大家帮帮忙啦
------解决方案--------------------使用多线程 技术的例子   
 http://blog.csdn.net/hertcloud/archive/2007/04/07/1556112.aspx
------解决方案--------------------while(pro.HasExited == true) 
 { 
 //重启它 
 }
------解决方案--------------------Process[] tp = Process.GetProcessesByName( "WindowsApplication11 ");   
             while( tp.Length == 0 ) 
             { 
                  p.Start(); 
                  System.Threading.Thread.Sleep(50); 
                  Process[] tp = Process.GetProcessesByName( "WindowsApplication11 "); 
             }