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.
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