By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

Need to write a program that wakes up every 15 minutes and does something

P: n/a
Need to write a program that wakes up every 15 minutes and does something.

I guess I could just create a Windows application and schedule it to run
every 15 minutes.

Or I could have a program always in memory that uses a timer to activate it
every 15 minutes.

1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?

Thanks


Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> 1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?


1. Create a windows service
2. Check out Windows Service Components in docs.
3. Yes.

Note that strictly speaking a service has no user interface. I assume you
reqiure no user interaction?
Alos note the difference in timers for Windows forms and server timers. Two
different classes that have different benefits/disadvantages. You want
server timers.

The choice of activation method is entirely dependant on what your doing,
how the user is affected/ivloved in the rocess/if there is a user at all. If
there is a user - dont use a windows service.

hth
Richard
Nov 20 '05 #2

P: n/a
I found some documentation and now realize it was not a question that can be
answer in a few sentences. After a little study I think I get it OK. If not
I'll be back.

Thanks for the info below!
"spamfurnace" <bi*******@tastycheeks.com> wrote in message
news:u$****************@TK2MSFTNGP09.phx.gbl...
1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?
1. Create a windows service
2. Check out Windows Service Components in docs.
3. Yes.

Note that strictly speaking a service has no user interface. I assume you
reqiure no user interaction?
Alos note the difference in timers for Windows forms and server timers.

Two different classes that have different benefits/disadvantages. You want
server timers.

The choice of activation method is entirely dependant on what your doing,
how the user is affected/ivloved in the rocess/if there is a user at all. If there is a user - dont use a windows service.

hth
Richard

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.