473,406 Members | 2,847 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,406 software developers and data experts.

Service sent a stop cmd????


HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.

Feb 1 '07 #1
3 2634
Do you rely on timers or anything like this? Are you sure you don't have an
exception that you are not handling?

--
Regards,
Robson Siqueira
Enterprise Architect
"TheMadHatter" <Th**********@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...
>
HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.

Feb 1 '07 #2
Yes, there is one service timer. The ServiceTimer_Elapsed is fully error
handled.

"Robson Siqueira" wrote:
Do you rely on timers or anything like this? Are you sure you don't have an
exception that you are not handling?

--
Regards,
Robson Siqueira
Enterprise Architect
"TheMadHatter" <Th**********@discussions.microsoft.comwrote in message
news:D8**********************************@microsof t.com...

HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.


Feb 1 '07 #3
Never mind....
It was one of my other programs stopping it, upon its start. urg. Thanks
anyhow.

"TheMadHatter" wrote:
>
HELP!!!!!

I created a service that cleans out files in a directory.
The problem is it works for a while, then something (windows perhaps?)
sends it a stop-service cmd.

I figure that my software should behave when it is sent a stop-service,
but what would send it a stop????? On shutting down the computer, I could
understand, but that never occured.

Great thanks in advance for any and all help.
Feb 2 '07 #4

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

Similar topics

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...
2
by: Ankit Aneja | last post by:
I am making windows service using Microsoft visual studio.Net in C# service name is clamservice problem is that when i start the service it through control pannel->Administrative tools->services...
3
by: zxo102 | last post by:
Hi there, I have a python application (many python scripts) and I start the application like this python myServer.py start in window. It is running in dos window. Now I would like to put it...
12
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
3
by: Terry Olsen | last post by:
I have a windows service that has been running fine for almost 6 months. Last week, it just stopped working. It is still in the task list and still shows "started" in the service manager. There...
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
1
by: chitra g | last post by:
Hi, I tried all the options below but did not work. Your suggestions please.
5
by: eliasen | last post by:
Hi I have created a Windows Service using C# and .NET2.0. The service is quite simple - right now it doesn't do anything except throwing an exception in the OnStart method. It used to something...
0
by: iprogrammer | last post by:
i have a problem when i try to run my windows service ..which is "Error 1053: The service did not respond to the start or control request in a timely fashion" >after this i cannot anything with...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
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...

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.