Thanks again for your help. I figured our how to used WinExec, but your code is more
sofisticated, much better error handling.
Using WinExec did not help in my case, but I was able to figure
our the flow in my program because I knew that something else going on:
I run the EXE from FoxPro2.6. In my EXE at first the splash screen set as Top-Level
form was displayed (SCREEN = OFF was put into Config.fpw).
During the time when the splash screen was active variables were set
and some other stuff was done. Later the splash screen disappeared and desktop
with menu system and In-Screen form was displayed.
I found that the splash screen disappeared a little bit before the desktop
was activated and sometimes (1 case from 10) the FoxPro2.6 session became active
with VFP EXE session behind.
I just changed the program to release memory variable associated with the splash
screen only after desktop became active and it was a solution.
Alex Golovan,
Consultant - Development,
GTE Enterprise Solutions