Windows service crash

Windows service crash

am 07.12.2007 11:56:48 von ramendra.kotharkar

Hello,

I have a windows service application that is developed using .NEt
VS2005 and it calls some unmanaged functions for doing some image
processing tasks. It often crashes when run continuously for a period
of 1 hour or so. There is information in event log some times (Fatal
Engine Error or Faulting application mscorwks.dll) and sometimes there
is no information in the event log. I tried to attach debugger to this
service to debug the application but always faced access violation
problem which is not related to service crash. I even enabled the
postmortem debugger using windbg but the application doesn:t get
caught when it crashes.

Help in this regards would be appreciated...

Thanks in advance,
Ramendra

Re: Windows service crash

am 07.12.2007 13:18:01 von Kevin Spencer

This is why I always write my service applications as class libraries that
can be hosted in a Windows application or a service. That way I can test
them without having to attach to a Windows Service process.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

wrote in message
news:e4fe22f8-2c7a-450c-974f-84bf9cc93192@e23g2000prf.google groups.com...
> Hello,
>
> I have a windows service application that is developed using .NEt
> VS2005 and it calls some unmanaged functions for doing some image
> processing tasks. It often crashes when run continuously for a period
> of 1 hour or so. There is information in event log some times (Fatal
> Engine Error or Faulting application mscorwks.dll) and sometimes there
> is no information in the event log. I tried to attach debugger to this
> service to debug the application but always faced access violation
> problem which is not related to service crash. I even enabled the
> postmortem debugger using windbg but the application doesn:t get
> caught when it crashes.
>
> Help in this regards would be appreciated...
>
> Thanks in advance,
> Ramendra