Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROCESS.VCX (API_APPRUN)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00225698
Message ID:
00225774
Vues:
27
Ed,

I look forward to update. You mention not to use the KillProc() unless necessary; I got that from one of the examples in the archives. Other than the oProcess = '', is anything else necessary to cleanup after running a DOS exe via API_APPRUN?

Ed

>No problem - sorry I didn't make the relationship between the PIF and the DOS executable clearer. It's about time I got around to releasing a new version which uses my CLSHEAP stuff to make more of the CreateProcess() API call easily accessible, and this time, I'll try to do more than just comment the code...
>
>>>
>>>You don't have the executable set to Close on Exit - go into Explorer, right click the executable, select Properties, and in the Program Tab, chheck the box marked Close on Entry. The DOS box will shut down on its own, then.
>>>
>>>You should be getting a logical value returned from LaunchApp(); if it comes back other than .t., examine the property icErrorMessage to see what is going wrong.
>>>
>>>Once you have the program closing the DOS window for you, try using LaunchAppAndWait(), which doesn't return to VFP until program termination.
>>>
>>>Killproc should not be called to terminate the application unless it hangs - it results in a messy death by a call to TerminateProcess(), whcih can leave Windows in an unstable state.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform