(object sender, EventArgs e)
| 270 | } |
| 271 | |
| 272 | void Process_Exited(object sender, EventArgs e) |
| 273 | { |
| 274 | DebugMonitor.Stop(); |
| 275 | |
| 276 | if (OnProcessExit != null) |
| 277 | { |
| 278 | if (SynchronizeInvoke != null) |
| 279 | { |
| 280 | SynchronizeInvoke.Invoke((Action)(() => |
| 281 | { |
| 282 | OnProcessExit(_Process.ExitCode); |
| 283 | }), null); |
| 284 | } |
| 285 | else |
| 286 | OnProcessExit(_Process.ExitCode); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | void DebugMonitor_OnOutputDebugString(int pid, string text) |
| 291 | { |