473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Windows service crash

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
Dec 7 '07 #1
1 2925
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

<ra****************@gmail.comwrote in message
news:e4**********************************@e23g2000 prf.googlegroups.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

Dec 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Razzie | last post by:
Hey all, I wrote a Windows Service. When I test it on my developement machine (winXP) it works fine. It starts ok, never crashes, etc. When I install the service on another machine (win2000) it...
4
by: Kris | last post by:
I have a Windows Service in C# talking to a serial port and using Remoting. It also uses several COM objects. On customer's computer the service will occassionally hang somewhere - the service...
7
by: Gene | last post by:
I have a Windows Service (VB.NET) that runs 24/7. It queries a Web service 5 to 10 times per hour. About 2 or 3 times a month, it fails. The log indicates that it sends the request to the Web...
1
by: V.Balaji | last post by:
Hi All, I have a problem in one of the windows service which is created using .net. The Service frequently stops and there is no entry in the Event Log for a crash please help me in sorting. I...
5
by: Geir Sanne | last post by:
hi!!! i want to make 1 windows service and be able to run like 20 independent instances of this. the main reason i want this is to be able to see the names of the processes running and to be...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
12
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service...
5
by: DarkPearl | last post by:
Bonjour à tous, apres avoir créer un service windows avec py2exe, j'ai ce probleme quand je lance le service : voici ce que je trouve dans le journal d'evenement : The instance's SvcRun()...
4
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.