首页 新闻 会员 周边

c# process 监听程序退出的问题?

0
悬赏园豆:10 [已关闭问题] 关闭于 2010-06-04 07:59

Process 设置

 robotProcess.StartInfo.UseShellExecute = false;
            robotProcess.StartInfo.RedirectStandardInput = true;
            robotProcess.StartInfo.RedirectStandardOutput = true;
            robotProcess.StartInfo.RedirectStandardError = true;
            robotProcess.StartInfo.CreateNoWindow = false;
            robotProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
            robotProcess.EnableRaisingEvents = true;//程序退出引发事件

 robotProcess.Exited += new EventHandler(robotOpenProcess_Exited);

监听某个程序  使得那个程序无法正常使用?不去掉 监听退出事件则能正常使用?这是什么原因?

 

 

anyTom的主页 anyTom | 初学一级 | 园豆:10
提问于:2010-06-03 18:03
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册