Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP as service question - again :(
Message
 
 
À
19/10/2002 13:34:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00713209
Message ID:
00713407
Vues:
33
This message has been marked as the solution to the initial question of the thread.
Hi!

For running some code periodically, use Windows Scheduler to run VFP app, unless you need something that runs each milliseconds to 5 minutes. We used several tools for this, and seems Scheduler is the best choise here - no overhead related to management ans security related to running service.

If you still want to use VFP app as a service (we have such needs), then read below.

Note that most if not all service running programs have significant isadvantage - when service shutdown, VFP APP will be killed (at least its how works SrvAny and its analogue in W2K). THe tools you have to pay for usually provide more complicated way for this - either by sending WM_CLOSE event or some special event. Because VFP does not able to handle special Windows events, you should look for a tool that sends WM_CLOSE to pplication before killing it to attempt o shut down it by usual way first.

Following is a WEB site that provides one of such tools I would recommend to use:

http://www.activeplus.com/

HTH.


>Hi All
>
>I have read various messages about running vfp as a service under NT and W2K. Some use the Dart(c) server tool control ($500!), others the srvany.exe from the resource kit, etc. Does anybody have an opinion on the cleanest / easiest / fastest way to implement a small VFP app as a service?
>
>TIA
>
>Jos
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform