M
Manfred Braun
Hi All,
in a windows service application [System.ServiceProcess.ServiceBase], I add
an eventhandler to the Application Domain:
public static void Main()
{
System.ServiceProcess.ServiceBase.Run(new SimpleServiceDemo1());;
AppDomain.CurrentDomain.UnhandledException +=
new
UnhandledExceptionEventHandler(SimpleServiceDemo1ExceptionEventHandler);
}
But my exceptionhandler is never called. What do I possibly wrong here?????
My eventhandler is simple:
public static void SimpleServiceDemo1ExceptionEventHandler
(object sender, UnhandledExceptionEventArgs e)
{
DebugOutput.OutputDebugString("Hallo!");
.......
(My "DebugOutput.OutputDebugString" works well in all other function of my
service).
Any help, hints or pointer to further information would really be very
welcomed!!
Best regards,
Manfred Braun
(Private)
Mannheim
Germany
mailto:[email protected]
(Remove the anti-spam-underscore to mail me!)
in a windows service application [System.ServiceProcess.ServiceBase], I add
an eventhandler to the Application Domain:
public static void Main()
{
System.ServiceProcess.ServiceBase.Run(new SimpleServiceDemo1());;
AppDomain.CurrentDomain.UnhandledException +=
new
UnhandledExceptionEventHandler(SimpleServiceDemo1ExceptionEventHandler);
}
But my exceptionhandler is never called. What do I possibly wrong here?????
My eventhandler is simple:
public static void SimpleServiceDemo1ExceptionEventHandler
(object sender, UnhandledExceptionEventArgs e)
{
DebugOutput.OutputDebugString("Hallo!");
.......
(My "DebugOutput.OutputDebugString" works well in all other function of my
service).
Any help, hints or pointer to further information would really be very
welcomed!!
Best regards,
Manfred Braun
(Private)
Mannheim
Germany
mailto:[email protected]
(Remove the anti-spam-underscore to mail me!)