>VFP 6.0
>
>I have an application that runs fine as a .app file, but if I build it as an .exe file it doesn't work. I launch the program and it flashes and then terminates. Any sugestions?
Sounds like you need a READ EVENTS to provide a wait state point after launching your main menu/modeless form. This is discussed extensively in the FAQ. Your main line of code, assuming that you launch a main menu and then expect to wait for user input, would look something like:
*
* Yadda, yadda, yadda
*
DO MyMainMenu.MPR
READ EVENTS
*
* Mumble, mumble, shutdown code
*
To exit from your app, you issue a CLEAR EVENTS. See the FAQ for a more detailed discussion.