Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer problem in VFP5a
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Timer problem in VFP5a
Divers
Thread ID:
00032693
Message ID:
00032693
Vues:
83
I have two programs: a Front-End application and a Parser program both written in VFP5a.

Whenever the front-end app is launched, it increments a counter in a table and if a logical field is set to .F., it RUNs an external VFP excutable which happens to be the parser. The parser has a timer which fires every 10 seconds during which it checks the above mentioned table to see if the counter is set to 0. Each time a Front-End app is closed, the counter is decremented until it reaches 0. If the value in the counter field is 0, the Timer Event in the parser, fires a Thisform.Release. The Unload Method in the Parser form has a CLEAR EVENTS to release the application.

Unfortunately, the Parser application only releases itself after 10 secs if it is launched manually from Windows Explorer. If you launch a Front-End session, which launches the Parser in a separate Windows session, and then close the Front-End app resetting the counter to 0, the Parser app does not release itself.

Is there another way to release an external Windows application from within VFP ?

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform