Building exe weird problem.  
Author Message
halfnutz





PostPosted: Visual FoxPro General, Building exe weird problem. Top

Hi there,

I had some funny problem with my foxpro program. I had a simple form and I had intergrated it into a project. When I build the project in exe format, everything was fine. I can see the exe file.

But when I click on the exe file to run it. Instead of showing me the form, the form just appear and dissapear in just a few miliseconds. When I try to run the form from foxpro, it's running fine.

Anyone can help me out here Thanks in advance ...

cheers.



Visual FoxPro2  
 
 
AndyKr





PostPosted: Visual FoxPro General, Building exe weird problem. Top

You need to put VFP into a wait tate when you run the EXE. In your startup program just add

READ EVENTS

immediately after the command to run the form.

Impoirtant: In the exit of your menu, or the form if you don't use a menu, ensure you have a CLEAR EVENTS to cancel the wait state and allow your exe to shut down.

You will find all the details in the Help File if you are unsure of this.