5
Tại sao phương thức Exited của quy trình của tôi không được gọi?
Tôi có mã sau đây, nhưng tại sao ProcessExitedphương thức không bao giờ được gọi? Nó cũng giống như vậy nếu tôi không sử dụng Windows shell ( startInfo.UseShellExecute = false). ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.CreateNoWindow = true; startInfo.UseShellExecute = true; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.FileName = path; startInfo.Arguments = …