Service in C# stops working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

We have built several "NT Services" with C#
After a few days the program just stop running with no error
The services says it is still "Started" and no error in the eventlog
After a restart the service functions again

Any ideas ? We are going crazy here.

Hans Eskilsson, WM-data, Sweden
 
Hi Hans,

Could be that an unhandled exception happened?
You really should incorporate a lot of Debug.WriteLine methods within your
service.
So you can diagnose such events.
 
No, we have try-catch in all the functions, so no errors could slip away


----- Miha Markic [MVP C#] wrote: ----

Hi Hans

Could be that an unhandled exception happened
You really should incorporate a lot of Debug.WriteLine methods within you
service
So you can diagnose such events
 
Back
Top