.NET Process.Kill() in a safe way
- by Orborde
I'm controlling a creaky old FORTRAN simulator from a VB.NET GUI, using redirected I/O to communicate with the simulator executable. The GUI pops up a "status" window with a progress bar, estimated time, and a "STOP" button (Button_Stop).
Now, I want the Button_Stop to terminate the simulator process immediately. The obvious way to do this is to…