Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / January 2008

Tip: Looking for answers? Try searching our database.

Windows service crash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ramendra.kotharkar@gmail.com - 07 Dec 2007 10:42 GMT
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
ttc - 09 Dec 2007 13:11 GMT
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.

> Hello,
>
[quoted text clipped - 11 lines]
> Thanks in advance,
> Ramendra
Ben Voigt [C++ MVP] - 16 Jan 2008 16:06 GMT
> Hello,
>
[quoted text clipped - 3 lines]
> 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

Do a non-invasive attach, maybe even kernel debug.

> sometimes there are entries in EventLog (Fatal Engine Error or
> Faulting module trying to access invalid memory location, etc.). But
[quoted text clipped - 4 lines]
> Thanks in advance,
> Ramendra

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.