HighTechTalks DotNet Forums  

Windows service crash

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Windows service crash in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ramendra.kotharkar@gmail.com
 
Posts: n/a

Default Windows service crash - 12-07-2007 , 05:42 AM






Hello,

I have a windows service developed using .Net VS2005 which makes call
to some unmanaged dll (for image processing related tasks). The
service often crashes after running continuously for 1 hour or so. We
tried to attached a debugger but couldn:t debug since we get Access
Violation the moment we try to attach a debugger. Whenever it crashes
sometimes there are entries in EventLog (Fatal Engine Error or
Faulting module trying to access invalid memory location, etc.). But
sometimes there are no logs in event viewer.

Help is greatly appreciated...

Thanks in advance,
Ramendra

Reply With Quote
  #2  
Old   
ttc
 
Posts: n/a

Default Re: Windows service crash - 12-09-2007 , 08:11 AM






Hi Ramendra

Have you tried to build a debug version of your service and try to attach to
it?

The reason of crashing could be anything (OutOfMemory, stackoverflow, etcc)
and anywhere (Managed and/or nonmanaged - null pointer exception, gp faul
etc..). Even if you can attach it to the process and the crash happens
randomly, it is still difficult to find out why it is crashing.

I guess you will need to isolate where your program crashes, at managed code
or unmanaged code level. Then perhap it will be easier to go from there. A
good start would be to wrap try and catch in all places that you susspect
the crash might happen.



<ramendra.kotharkar (AT) gmail (DOT) com> wrote

Quote:
Hello,

I have a windows service developed using .Net VS2005 which makes call
to some unmanaged dll (for image processing related tasks). The
service often crashes after running continuously for 1 hour or so. We
tried to attached a debugger but couldn:t debug since we get Access
Violation the moment we try to attach a debugger. Whenever it crashes
sometimes there are entries in EventLog (Fatal Engine Error or
Faulting module trying to access invalid memory location, etc.). But
sometimes there are no logs in event viewer.

Help is greatly appreciated...

Thanks in advance,
Ramendra


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.