Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executable file not running
Message
From
23/07/2003 09:30:11
 
 
To
23/07/2003 04:05:23
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00812673
Message ID:
00812753
Views:
14
>Hi ,
>I created an exe for my project. It runs fine when run through the command prompt.
>But when run by double clicking it is not working.
>I have the DLLs placed in the same folder where the exe resides.
>
>Could anyone suggest what could be the problem? Expecting a response urgently.
>
>Thanks in advance.
>Francita


You do not explain what is happenning, if you get error messages, or if the program just runs and exits immediately. I suspect it is the latter in which case it indicates you are missing a wait state. Add a READ EVENTS to your main program.

Something like:
* Main.prg
Set Exclusive Off
Set Talk Off
Set Multilocks On

* other SETs here
* call or install your menu here
* call your main form if needed:
DO Form xx

* set up your wait state. The program stays here all the time
* responding to user actions. Once a Menu->Exit or Form->Exit is pressed,
* it should issue a Clear Events which brings you back
* to Main.Prg in the line *after* Read Events for clean up and exit

Read Events

* clean up code here
Quit
See Read Events in the help file and see also On Shutdown which might help.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform