Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE terminates
Message
From
28/06/2000 17:02:10
 
 
To
28/06/2000 16:56:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00386111
Message ID:
00386116
Views:
22
>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.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform