Process.HasExited returns true even though process is running?

后端 未结 11 2092
忘掉有多难
忘掉有多难 2020-12-15 03:41

I have been observing that Process.HasExited sometimes returns true even though the process is still running.

My code below starts a proces

11条回答
  •  一生所求
    2020-12-15 03:57

    I know, this is an old post but maybe I can help someone.
    The Process class may behave unexpectedly! HasExited will return true if the process has exited or if the process runs with administrator privileges and your program only has user privileges.

提交回复
热议问题