473,508 Members | 2,384 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.timer
Mar 4 '08 #1
2 1524
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.timers
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
2655
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...
2
4697
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...
5
12922
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. ...
5
5074
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...
4
1119
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...
1
1346
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...
7
2377
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...
4
4158
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...
2
11689
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...
0
946
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...
0
7223
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
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7377
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
7489
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...
0
5624
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,...
1
5047
isladogs
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...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.