I used System.Threading.Timer
in a Windows Service to do routine tasks. Will unhandled exceptions thrown in the callback method crash the service? I searched online, couldn't find any useful links.
I get this exception in the event log and the service crashes.
at MyNameSpace.MyClass.MyCallback(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading._TimerCallback.PerformTimerCallback(System.Object)
Any MSDN article pointers on this will be appreciated.