Anton Shepelev
2019-05-08 11:31:00 UTC
Hello, all
I have a singel-threaded Windows service in C#. Its main
loop is wrapped in a `try' block, and I am logging the
exception the `catch' block. I have also subscribed to
AppDomain.CurrentDomain.UnhandledException
and am logging it too, as well the Start and Stop commands.
Yet my client reports that sometimes my service stops
without writing anything in the log. What can be the cause
if the log file is accessible (the service adds an entry at
start-up) and nobody is stopping the service process via
Task manager (I belive them they don't)? How can I diagnose
the situation?
I have a singel-threaded Windows service in C#. Its main
loop is wrapped in a `try' block, and I am logging the
exception the `catch' block. I have also subscribed to
AppDomain.CurrentDomain.UnhandledException
and am logging it too, as well the Start and Stop commands.
Yet my client reports that sometimes my service stops
without writing anything in the log. What can be the cause
if the log file is accessible (the service adds an entry at
start-up) and nobody is stopping the service process via
Task manager (I belive them they don't)? How can I diagnose
the situation?
--
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]
() ascii ribbon campaign - against html e-mail
/\ http://preview.tinyurl.com/qcy6mjc [archived]