>You could try another timer - try this one:
>
http://download.com.com/3000-2401-889219.html?tag=lst-0-1>This uses a multimedia timer. Multimedia timer services allow applications >to schedule timer events with the greatest resolution (or accuracy) >possible for the hardware platform.
>There's also one at
http://www.bbcontrols.com/ that runs as a .fll ...
Hi Claude,
Thanks for your continued help. I know I might seem a bit negative on this but that is because I have tried similar approaches numerous times before and all have failed for various reasons.
The first problem with any timer is that, as far as I am aware, NT/2000 only ticks every 15ms so for one request/response that is a potential delay introduced of 30ms.
The other main problem is that, from what I have seen before, these timers work by creating a new thread each time they are triggered. That frequent creation/destruction of threads becomes quite a large CPU overhead when there are lots of small requests.
I still feel that the ultimate solution must be to multithread VFP using a CreateThread() call (maybe in an fll) with multiple instances of session objects. Unfortunately it would take someone with more knowledge than me to achieve this. I have spoken to a couple of C/C++ programmers (but with no knowledge of Fox) who both agree that considering that the session class already covers any multithreading issues this should be reasonably simple. Unfortunately without the VFP source that simple task becomes very difficult or so they tell me :)
All the best,
Nick