R
Rick
Hi,
I'm having a problem using Process.Kill(). I've been getting the
Win32Exception "The associated process could not be terminated". I'm using
OpenNETCF SmartDeviceFramework 1.3. I know that there was a bug in
Process.Kill() before but I assume this has been fixed with the latest
version.
I'm awaiting an executable that I will start and kill so in the mean time I'm
just starting iexplore.exe and trying to kill it to get me going. I'm
starting the process with "psi.UseShellExecute = false;" to give me a valid
PID. I noticed that I could kill a different process, ceplayer.exe. Why can
I kill ceplayer.exe but not iexplore.exe?
I tried a work around recommended by Peter Foot. I P/Invoke
TerminateProcess() and CloseHandle() but this didn't work either.
TerminateProcess always returns failure and the process does not die. I pass
TerminateProcess a value of 1 for exitCode which I got from a call to
GetExitCodeProcess().
Please let me know if I'm doing something wrong. Thank you.
Rick
I'm having a problem using Process.Kill(). I've been getting the
Win32Exception "The associated process could not be terminated". I'm using
OpenNETCF SmartDeviceFramework 1.3. I know that there was a bug in
Process.Kill() before but I assume this has been fixed with the latest
version.
I'm awaiting an executable that I will start and kill so in the mean time I'm
just starting iexplore.exe and trying to kill it to get me going. I'm
starting the process with "psi.UseShellExecute = false;" to give me a valid
PID. I noticed that I could kill a different process, ceplayer.exe. Why can
I kill ceplayer.exe but not iexplore.exe?
I tried a work around recommended by Peter Foot. I P/Invoke
TerminateProcess() and CloseHandle() but this didn't work either.
TerminateProcess always returns failure and the process does not die. I pass
TerminateProcess a value of 1 for exitCode which I got from a call to
GetExitCodeProcess().
Please let me know if I'm doing something wrong. Thank you.
Rick