Re: Windows service crash
- From: "ttc" <cuong.tong@xxxxxxxxx>
- Date: Mon, 10 Dec 2007 00:11:54 +1100
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@xxxxxxxxx> wrote in message news:7fc1bf69-dd90-4e8c-86e2-f39274df2f3b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Windows service crash
- From: ramendra . kotharkar
- Windows service crash
- Prev by Date: Re: Getting the Type of a Generic Parameter
- Next by Date: Re: Getting the Type of a Generic Parameter
- Previous by thread: Windows service crash
- Next by thread: Getting the Type of a Generic Parameter
- Index(es):
Relevant Pages
|