Process.WaitForExit seems hang

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top