General information
Category:
Coding, syntax & commands
Hi Hilmar.
>I was thinking about doing some lengthy processes in the background. For this purpose, I might need to start a separate EXE (perhaps a second instance of the original EXE - or perhaps I will have to separate the lengthy processes into other files). The idea is that the user specifies some lengthy process in the main program (e.g., prepare a lengthy report), and the second EXE is started automatically.
Take a look at the Pool Manager sample that comes with VFP (SAMPLES\SERVERS\POOLMGR). The idea is that you call a VFP COM object that's based on a timer. Since it's a COM object, it runs in a separate instance of VFP. Basing the COM object on a timer means that it can return control immediately to the caller, which can carry on doing whatever it needs to. The timer in the COM object then fires and starts performing the required task in the background.
Doug
Previous
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