Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers don't work in DLLs
Message
 
À
03/09/2010 20:39:44
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01480101
Message ID:
01480347
Vues:
137
This message has been marked as the solution to the initial question of the thread.
Hi Joel,

DLL servers have no wait states. Since they don't officially support forms and controls (although you can actually run them) timers don't work inside of DLLs. DLL functions are meant to be transactional and not maintain state the way a regular VFP EXE does.

You can get around this by using EXE servers which DO support timers (I use them in Web Connection for background cleanup tasks for example).

The other alternative might be to use some sort of ActiveX timer which doesn't require form/window handles to run. If you search you might be able to find something that does this for you.

But frankly why do you need timers inside of a DLL server? If you're calling from just about any other environment than Fox it's likely to have timer functionality natively on that platform. Let the client platform handle the timer firing and pass the processing off to VFP from there...

+++ Rick ---

>As far as I can tell, timers do not fire inside VFP DLLs (single or multi-threaded). Can anyone confirm that is the case? Or if there is a way to get them working, let me know.
>
>Thanks.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform