By using project manager I used build option for creating the (.EXE). but when I go to the folder and open the .EXE file it just flashes. May I know what to do to overcome this
I am using the read events and clear events in the main program
The code in the main program
*****************************************
on shutdown do cleanup in main.prg
set talk off
set deleted on
set exclusive off
set date to mdy
set status bar on
Make sure you set the go under the programs section and have the correct startup program selected. I once created a small app and added the form to the project first and by default it set the form as startup. I was driving me crazy because when I ran it from the comnamd line (do myprog.prg) it ran fine, but as an exe I encountered a similar problem as you described.
Jim has given you a good suggestion. Essentially, you need to find the main program in the project manager, and check that it appears in bold. If it doesn't, right click on it and choose "Set as main".
Failing that the only other thing I can suggest is that you set a breakpoint near the start of the main program, and then single-step in the debugger. That might give you a clue as to the point at which the program is exiting.
One other thing: When the program has flashed off the screen, check the Task Manager to see if it's still loaded in memory. You won't see it in the Applications tab, but if it's present in the Processes tab, you know that it is still running, but is invisible. If that's the case, let us know.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.