I want to wait for a process to finish, but process.WaitForExit()
hangs my GUI. Is there an event-based way, or do I need to spawn a thread to block until exit, then delegate the event myself?
views:
947answers:
3
+4
A:
According to this link the WaitForExit() method is used to make the current thread wait until the associated process terminates. However, the Process does have an Exited event that you can hook into.
BFree
2009-01-22 18:21:27
for the record, it appears you must also set `c4_process.EnableRaisingEvents = true`
Dustin Getz
2009-01-22 19:06:41