G
Guest
Hi,
WaitForExit in beta2 sometimes hangs.
I can't tell the exact situation, but it doesn't exit.
I create a process object, and start it.
Then wait for its termination by WaitForExit with timeout value.
When it timeout (WaitForExit returns false),
I dumped standard output and standard error.
The standard output log says that process worked fine and finished without
error.
Before dumping, I check HasExited property, but it says false, too.
I also tried EnableRaisingEvents and Exited event, but it didn't work for
me, either.
The same code sometimes works fine, but not the other.
Did I miss anything?
Thanks,
Tomoki
WaitForExit in beta2 sometimes hangs.
I can't tell the exact situation, but it doesn't exit.
I create a process object, and start it.
Then wait for its termination by WaitForExit with timeout value.
When it timeout (WaitForExit returns false),
I dumped standard output and standard error.
The standard output log says that process worked fine and finished without
error.
Before dumping, I check HasExited property, but it says false, too.
I also tried EnableRaisingEvents and Exited event, but it didn't work for
me, either.
The same code sometimes works fine, but not the other.
Did I miss anything?
Thanks,
Tomoki