473,836 Members | 2,123 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Service stops in its tracks, halts; no exception, no explanation

Howdy All,

I have a Windows Service that often stops in its tracks with no
exception and no explanation on our QA system.

During testing on the development machine, it can handle any workload,
and complete with no problems. Even during testing on another test
machine, it can handle any workload, and complete with no problems.
This behavior has been tested multiple times.

However, when installed on our QA system, it often stops with no
exception and no explanation. This behavior has recurred multiple
times, albeit at different points in the code each time. It never
recurs at the same point twice.

I have seen this behavior if it were trying to write an event log
message when the Event Log is full. However, that is not the case here.
1) It is not trying to write any event log messages. 2) The Event Log
is not full.

I have also seen this behavior when certain errors occur outside of an
error handler, such as trying to access a nonexistent file. However,
again, that is not the case here. 1) All code that could possibly cause
an error is within an error handler. Further, there is one primary
error handler in the timer event that the service operates with. If any
error were to occur, it should bubble up to this error handler if not
caught by any other error handler. 2) I am not trying to access a
nonexistent file or any other code that I have seen cause unexplained

Whenever I have seen service halting before, such as when the Event Log
is full, I can use the Task Manager to view running processes. Doing so
reveals that the memory footprint of the halted service process is
almost 0. However, in this case, the memory footprint is normal.

I should add that the QA machine where this halting behavior occurs is
severely bogged down with other processes. Specifically, it is running
SQL Server, and the SQL Server process is consuming 98% or 99% of the
processor. It seems like no other processes are being given a time
slice. The Windows UI is barely responsive, but it eventually does
respond to mouse and keyboard commands.

In production, it is unlikely that the service machine or the database
machine will be this highly utilized. However, I cannot be certain of
this, and without being able to catch this unexplained error, I cannot
make the service degrade gracefully. This is preventing the QA team
from signing off, which is preventing the application from being put
into production.

Can anyone shed any light on this topic? Why would a Windows Service
halt for no reason and not throw an exception?

Thanks in advance,

Nov 22 '05 #1
2 2571
"MatthewRoberts " <mr*********@ho tmail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com...
Can anyone shed any light on this topic? Why would a Windows Service
halt for no reason and not throw an exception?

I don't know that it is related to your problem but I can tell you that
there are cases where the stack is exhausted to such an extent that there is
none for the exception handler to use. In that case you get nothing.

Nov 22 '05 #2
Is there some way to check if the stack is exhausted, and/or clear the

Nov 22 '05 #3

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

Similar topics

by: stewert gallington | last post by:
Im running some pretty straight forward code. Mainly database access (SQL7) doing inserts and sometimes when the script runs it halts the IIS service dead in its tracks. Before the page can even finish loading. the error seems to be caused when i introduced this section of code into the page. sub SaveIDC( rec2Save )
by: MatthewRoberts | last post by:
Howdy All, I have a Windows Service that often stops in its tracks with no exception and no explanation on our QA system. During testing on the development machine, it can handle any workload, and complete with no problems. Even during testing on another test machine, it can handle any workload, and complete with no problems. This behavior has been tested multiple times.
by: JSheble | last post by:
I've written a Windows Service using C#, but I cannot seem to figure out how to cancel or prevent the service from starting under certain conditions. For example, in the OnStart I read in some configuration settings, and if anything is either empty, or invalid (such as a DB DataSource string or a missing diredtory, etccc) I don't want the servie to start. So how would I cancel the start up?
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with no problems. However, I am not able to start or stop the service unless I go through the process of impersonating an administrative user. (See MSDN KB 306158) Since it appears to be a privilege issue, I set the folders in IIS holding the Web...
by: John Fred | last post by:
Salve, I have write a service Windows for the remoting. I have a dll Server (OLD COM+) For Configure DLL Server I user Config File Es. <configuration> <system.runtime.remoting> <application>
by: Chris Dunaway | last post by:
I am attempting to use the AppDomain.UnhandledException event in a Windows Forms app and also in a Windows Service. But the event doesn't seem to be called. In a Windows Forms app, the event IS called but only if I run the app through the IDE. If run standalone (release or debug build, it doesn't matter), the event handler is never called. In the Windows Forms app, I changed it to use the Application.ThreadException event and that...
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer (System.Timers.Timer) which has an interval of 24 hours. Actually, it reads a time like 2AM out of the config file, and calculates the time between the start of the service to 2AM, and sets the timer. When the timer expires, it re-reads the...
by: Shawn Meyer | last post by:
Hello, I have a windows service. When the onstart fires, my app creates two threads. The first is a processing thread and the second is a watcher that makes sure the everything is ok with the first thread. When a problem is detected the second (watcher) thread stops the processing thread and then throws an exception. This exception does not stop the service like I would think. My question is, what is the best way for the watcher...
by: Niron kag | last post by:
Hi, I wrote a windows service in c# in .NET 1.1 and SQL Stored Procedures, and I run it on Microsoft windows server 2003 service pack 1. The service works every 10 minutes and pass data between SQL tables. The service works well for about 2 hours. After about 2 hours the service stops. When I look at the event viewer I see the message: Faulting application <my service name>.exe, version 1.0.2413.28158, faulting module kernel32.dll,...
by: sonali_reddy123 | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along with this I need an option to show the windows application which my service has started as a result of its invokation. So I have written a service control by adding a new project of type
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.