| View previous topic :: View next topic |
| Author |
Message |
John Vinnell Guest
|
Posted: Thu Sep 22, 2005 8:20 am Post subject: Ispai dll with Timer not working |
|
|
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
|
Posted: Thu Sep 22, 2005 3:59 pm Post subject: Re: Ispai dll with Timer not working |
|
|
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
|
Posted: Fri Sep 23, 2005 8:18 am Post subject: Re: Ispai dll with Timer not working |
|
|
Rob,
Thanks sleep worked
|
|
| Back to top |
|
 |
|