Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executable behaves oddly
Message
De
15/07/2005 23:14:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/07/2005 23:03:14
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01033261
Message ID:
01033264
Vues:
27
>I built a small system which runs well in the interactive mode. When I build a .exe, the .exe runs fine when I select the run after build option, but when I run the executable from Windows Explorer it blinks for an instant and quits. Has anyone else encountered this?

I would say almost everyone has encountered this.

You need a READ EVENTS for VFP to wait for input; the command invoked from your "File | Exit" command, or similar, should include CLEAR EVENTS.

If you do it correctly, the Command Window should not appear while you are working from within VFP.

READ EVENTS can be thought of as an "endless loop in a single command": VFP waits for user input (menu click, click on a button, etc.). When an event occurs, VFP processes it, and then continues waiting.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform