Hi,
I have a problem with HasExited process property.
The code is:
...
if ( some_process.Ha sExited == false )
{
string name = some_process.Pr ocessName;
}
...
The error is :
System.InvalidO perationExcepti on: Process has exited, so the requested
information is not available.
at System.Diagnost ics.Process.Ens ureState(State state)
at System.Diagnost ics.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.Ha sExited == false )
{
string name = some_process.Pr ocessName;
}
...
The error is :
System.InvalidO perationExcepti on: Process has exited, so the requested
information is not available.
at System.Diagnost ics.Process.Ens ureState(State state)
at System.Diagnost ics.Process.get _ProcessName()
But if process has exited how come the if statement has been executed at all
???
Regards
Piotr
Comment