Visual C# GUI stops responding when process.WaitForExit(); is used
问题 I am creating a GUI application using Visual C# 2005 (net framework 2). I use the following code to start a process: Process process = new Process(); process.StartInfo = new ProcessStartInfo("app.exe"); process.StartInfo.WorkingDirectory = ""; process.StartInfo.Arguments = "some arguments"; process.Start(); process.WaitForExit(); I want my application to wait until this process is finished, so I used WaitForExit. But the GUI Windows freezes while app.exe is running. I want it to respond (e.g.