BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ispai dll with Timer not working

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
John Vinnell
Guest





PostPosted: Thu Sep 22, 2005 8:20 am    Post subject: Ispai dll with Timer not working Reply with quote




I was hoping to be able to use an Isapi dll with a TTimer on it as kind of scheduler for my web server.

In this particular case in project2.dll I have set the Timer interval to 10 secs and in the OnTimer event I write to a file which the IUSR account has write access to. I run project2.dll through the browser which returns a string so i know it has loaded, however nothing ever gets written to the file.

Should this work ? And if so what am I doing wrong ?

Thanks for any help
Back to top
Rob Roberts
Guest





PostPosted: Thu Sep 22, 2005 3:59 pm    Post subject: Re: Ispai dll with Timer not working Reply with quote



A Timer won't work in an ISAPI DLL because there is no Windows message loop.
I use secondary threads for this kind of thing in ISAPI DLLs. You can use
Sleep or WaitForSingleObject to make the thread act as a Timer.

--Rob Roberts

"John Vinnell" <John.Vinnell@> wrote

Quote:

I was hoping to be able to use an Isapi dll with a TTimer on it as kind of
scheduler for my web server.

In this particular case in project2.dll I have set the Timer interval to
10 secs and in the OnTimer event I write to a file which the IUSR account
has write access to. I run project2.dll through the browser which returns
a string so i know it has loaded, however nothing ever gets written to the
file.

Should this work ? And if so what am I doing wrong ?

Thanks for any help



Back to top
John Vinnell
Guest





PostPosted: Fri Sep 23, 2005 8:18 am    Post subject: Re: Ispai dll with Timer not working Reply with quote




Rob,
Thanks sleep worked
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.