473,569 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows registry with timer

41 New Member
i mplemented win service wid timer dat starts after 50sec interval.i started service manually. but my service started n immmediatelly i got message:
process started n stopped. some services stop automatically if they dont have work to do e.g. performance log.


wh can i do? i want my service to start , wait for dat much interval , do its work, wait for interval n then repeat.
i have used system.timers.t imer
Mar 4 '08 #1
2 1528
Plater
7,872 Recognized Expert Expert
How did you implement your timer stuff?
It should start, count to 50 secs then stop itself and procede to do all it's work.
When the work is done, the timer should be reset and started again.

As for services that stop when there is no more work to be, another program/service is controlling them, doing the start (and stop sometimes)
Mar 4 '08 #2
dipalichavan82
41 New Member
How did you implement your timer stuff?
It should start, count to 50 secs then stop itself and procede to do all it's work.
When the work is done, the timer should be reset and started again.

As for services that stop when there is no more work to be, another program/service is controlling them, doing the start (and stop sometimes)

i have used system.timers.t imers
interval=50sec
as i start service manually, it is counting for 50sec to get over. so i think till dat time service dont have any work to do.dats y it is stopping. wh shud i do to avoid this prob.
in my onstart method i m initiating some class n calling its method.then i instantiated a timer wid interval 50sec dat calls some method (logic to b executd after each inetrval)after 50 sec.
plz help
Mar 5 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2669
by: Robert | last post by:
how can i open a _NEW_ browser window on Windows ? (It should be browser independent. at least for IE, Mozilla & Netscape) i found a snippet/suggestion for "IE only" in this group but it doesn't work, open also in old window: from win32com.client import Dispatch def start(url):
2
4705
by: Jesper Stocholm | last post by:
I have created a simple service which just copies a fil to a new file with a new name on certain intervals (the service implements a timer). I have no problems installing the service and the log-entries I have created on stop() and start() in the eventlog works fine as well. However - the actual task is never executed. I catch the execution of...
5
12927
by: Dhilip Kumar | last post by:
Hi All, I'm writing a Windows Service app using C#. I need to read some configuration settings before the service starts up. These settings will be used by the service in its operation. Question is, which is the best way to store & retrieve the settings? I'm thinking of storing it in the registry in HKLM\Software\ServiceName and access...
5
5077
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue control. The service will "sleep" for 'n' seconds using the timer control and whenever the timer_elapsed event occurs, I use the performance counter...
4
1120
by: Jerry Camel | last post by:
I'm posting this here because it seems to be a much more active group that the standard VB group and I suspect that ASP developers may be more inclined to write a service, anyway. I've got my service all nice and compiled and it runs just great. Question is, how do I populate the description field in the Control Panel Services applet? Is...
1
1349
by: SMG | last post by:
Hi there, I created a windows service. I want that service to make a call to msmq after each 15 minutes. Where do I place the timer, and how, (timing should be configurable from outside the service) Is there any way, i can say my service.sleep(15 minutes)
7
2385
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the System.Diagnostic.Process object to start the application (i.e Notepad), the new app runs and it is listed on the task manger list, but the GUI...
4
4169
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 check to see if the status is in stopped or running mode. But that doesn't tell me if it is actually running. I need to know this so that if it...
2
11704
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on another CD, and gets caught in a loop when I try to delete it! It mentions MS.net frame error # 1706. The "details" code follows...hope someone can help me...
0
952
by: dipalichavan82 | last post by:
i created windows service with timer in which i m deleting files of specific extensions on client m/c n putting on server .i m taking values for 1.list of file extensions dat should be considerd 2.destination path on server 3.timer interval from windows registry. i m programmatically creating key-value pairs in windows registry. when i...
0
7703
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, 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...
0
7926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
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...
0
3657
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...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
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...

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.