P
piotr
Hi,
I have a problem with HasExited process property.
The code is:
...
if ( some_process.HasExited == false )
{
string name = some_process.ProcessName;
}
...
The error is :
System.InvalidOperationException: Process has exited, so the requested
information is not available.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_ProcessName()
But if process has exited how come the if statement has been executed at all
???
Regards
Piotr
I have a problem with HasExited process property.
The code is:
...
if ( some_process.HasExited == false )
{
string name = some_process.ProcessName;
}
...
The error is :
System.InvalidOperationException: Process has exited, so the requested
information is not available.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_ProcessName()
But if process has exited how come the if statement has been executed at all
???
Regards
Piotr