Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Still processing even Getfile
Message
De
21/05/1999 08:43:52
 
 
À
21/05/1999 08:34:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00221277
Message ID:
00221317
Vues:
16
>>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.

>Bill
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform