Groups | Blog | Home
all groups > asp.net building controls > july 2005 >

asp.net building controls : Timer.Elapsed event doesn't want to fire


Anand[MVP]
7/15/2005 12:34:02 AM
Are you trying to use this in a ASP.NET Page? Pages live only for the time of
the request. Once a request is served, the Page class is destroyed.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com


[quoted text, click to view]
stand__sure
7/15/2005 1:42:02 AM
for asp.net, anand is correct.

for all languages in general, timers are not guaranteed to fire on
time. this happens for two reason: 1) task switching at the CPU; and
2) WM_TIMER messages have a lower priority than other messages (like
device input)
Nathan Sokalski
7/15/2005 3:19:41 AM
I am trying to learn how to use the System.Timers.Timer control to perform
an action every certain amount of time. However, the Elapsed event doesn't
want to fire, but I can't figure out why. I looked at several code examples
online, but I think I was doing everything the same way they were. Does
anybody have a complete example in VB.NET (the whole aspx and aspx.vb file
so I know I am including everything) that I can look at? Any help would be
appreciated. Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

AddThis Social Bookmark Button