Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Mar 6, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

EXE Starts and Ends Immediately

When I build my application as an EXE and run it, the application comes up and then immediately disappears.

What is wrong?

You need to create an event loop that will hold your application in memory until you leave the application (choosing File | Exit, for example).

The command called READ EVENTS does exactly what you need. You need to put a READ EVENTS into your code, right after the code that sets up the menu and the environment.

Now you need a way to get out of that event loop when you want to leave the application. Visual FoxPro has a CLEAR EVENTS command that will end the event loop. Put a CLEAR EVENTS into the code that tells your app to end (in the menu item File | Exit, for example).

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date