Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS-VB6 Starting a timer event

Status
Not open for further replies.

BlackKnight

Programmer
Oct 18, 2000
348
US
Hi,

I am using IIS 5 and VB6. I want a timer event to be started once in my app and continue to fire at the specified interval for as long the website is running. I tried enabling the timer in the WebClass_Start as well as Initialize events but it didn't work. The question being in which webclass event can I enable the timer to achieve the desired results. Thanx in advance.

Have a good one!
BK
 
Hi BlackKnight,

Well, you can use the start or the initialize events, but can you explain a little more what it is you want to do with the timer?

Every time a user enables an action on your website, the webclass is created and started again. So each time the user makes a request to your website a process is started and the initialize and start event is triggered.

After the request is handled, the webclass is terminated and so is the process in which it ran. Thus every component you created in your webclass is destroyed. The Timer you're talking about should be lanched through an executable on the server in order to let it run even when the webclass is allready terminated.

This enables you to start the timer when the very first user enteres your site and lets the timer run until you stop it.

Good luck!

Jordi Reineman

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top