Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting and stopping .exe frequently
Message
 
 
À
25/07/2012 15:36:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01549253
Message ID:
01549273
Vues:
53
Do I understand it correctly that you are suggesting that the Windows Events approach is better than Timer?
And of course, thank you for the suggestion.

>I would take a different approach. Create a service that monitors the folder for a file. There is a VFP Solution Sample that shows how to hook into Windows Events and watch for the file to be added to the folder. That way, the application is always available, but sits idle until the event fires.
>
>>I need to process an XML file(s) sent by an external application. I can make the external application drop the XML files in a folder and have a VFP with a timer to pick up these files. Or I can make the external program to automatically run a VFP application and pass it the name of the XML. The latter approach has advantage over the timer program: the timer program could crash and need to be restarted.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform