G
Guest
I have a C# Windows Service (using legacy COM objects, serial port and
remoting) which will occassionally lock up. I'm able to detect the lockup by
having a System.Timers.Timer watching the main loop. When the service locks
up all I want to do is to terminate it programmatically so it can be
restarted by another watchdog service. No matter what I try it will not
terminate. I was trying to use ServiceProcess.ServiceController.Stop() and
Process.Kill() and nothing happens. It still shows on a list of processes.
Actually I cannot even kill it manually by any method and I have to reboot
the computer to restart it. It seems like OS somehow lost track of this
sevice. It locks up randomly sometimes every few hours and sometimes every 6
weeks. It only happens on one particular computer and I can't simulate it
anywhere else. No exception is ever generated. It runs on Windows 2000.
Thanks for any suggestions.
Kris.
remoting) which will occassionally lock up. I'm able to detect the lockup by
having a System.Timers.Timer watching the main loop. When the service locks
up all I want to do is to terminate it programmatically so it can be
restarted by another watchdog service. No matter what I try it will not
terminate. I was trying to use ServiceProcess.ServiceController.Stop() and
Process.Kill() and nothing happens. It still shows on a list of processes.
Actually I cannot even kill it manually by any method and I have to reboot
the computer to restart it. It seems like OS somehow lost track of this
sevice. It locks up randomly sometimes every few hours and sometimes every 6
weeks. It only happens on one particular computer and I can't simulate it
anywhere else. No exception is ever generated. It runs on Windows 2000.
Thanks for any suggestions.
Kris.