In some circumstances my .Net windows service can generate a StackOverflowException. Unfortunately, the behaviour seems to be that the service simply stops dead and doesn't write anything into the event log. I don't even get a message from the service control manager saying the service has failed.
is there any way at all a windows service can detect that such an exception has occurred?
In the documentation for this exception, MSDN says "Note that an application that hosts the common …