Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Still processing even Getfile
Message
From
21/05/1999 08:53:09
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00221277
Message ID:
00221325
Views:
14
>>>Hi,
>>> I have a long process, when user click a button to select file using GETFILE(), the running long proces stop. How to make the long process kepp running even select file from open dialog box??
>>>
>>>Thank you
>>
>>I don't believe you can within a single VFP application. That would require multi-threading and VFP is not multi-threaded ( except the apartment type for COM ).
>>
>
>I agree with you on this. the only way I can think of to do this would be to actually have multiple VFP executables running independent of each other (if synchronization was needed, some sort of semaphoring could be used to signal the completion of a spawned task; you could use API_APPRUN to launch another VFP session using the LaunchApp method, and then poll for its termination using the CheckProcessExitCode method. This has the advantage of letting two things go on independently, but obviously, there'd be multiple copies of the VFP environbment up and running, and competing for CPU cycles and memory.
>

Hi Ed,

I had thought about the possibility of spawning new "occurences" of a VFP app to accomplish this type of task. But off the top of my head the logistics seemed like it would probably such a nightmare to sync them ( assuming they needed to be synced some how ), it wouldn't be worth the gain. :-)

>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform