General information
Title:
Timer problem in VFP5a
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only