471,310 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

I need help with this

Hi,
I created a service that should execute every 2 hours but it doesn't. It
works once at startup but after that it does nothing. Now if I set it to run
every 5 sec it works fine. Here is my code at startup

Dim TimerDelegate As New Threading.TimerCallback(AddressOf ExecuteTask)

Dim TimerItem As New System.Threading.Timer(TimerDelegate, 1, _
10000, 3600000)
If I change the above to

Dim TimerDelegate As New Threading.TimerCallback(AddressOf ExecuteTask)

Dim TimerItem As New System.Threading.Timer(TimerDelegate, 1, _
5000, 5000)

It works fine every 5 secs. What do you think may be the problem?

Thanks
Jul 21 '05 #1
0 886

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Camilla | last post: by
4 posts views Thread by Phil | last post: by
1 post views Thread by Showjumper | last post: by
11 posts views Thread by sarathy | last post: by
7 posts views Thread by John Paul | last post: by
reply views Thread by rosydwin | last post: by

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.