Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

program not working after setup

Status
Not open for further replies.

thegame8311

Technical User
Jan 6, 2012
133
US
I was testing out how to make my program setup and run using installshield express

I created the exe from foxpro, then I tried to use install shield to make it a setup, which it did, but when I click on the file nothing happens

If the forms are in the VFP.exe that I made and I added the databases to the DatabaseDIR, then what I am i missing for it to work, I did not do any Registry files.

If you need to know step by step what I did let me know
 
From FoxPro it runs but I don't call a clear events

When I tried to call a clear events, read events did not end.

Now when running it after setting it up through a installshield express, then I run it an nothing happens
 
From FoxPro it runs but I don't call a clear events

DO NOT RUN FROM WITHIN FOXPRO.

Tamar SPECIFICALLY asked what happens when you double-click the EXE in Explorer. NOT FROM WITHIN FOXPRO. In Explorer. To make that even more clear, she means Windows Explorer.

DO NOT START FROM WITHIN FOXPRO.

Is that clear? What happens when you do this?
 
it runs, then after I click the done button on the form that was called in the main program, the program stays open, I try to to close it and it says cannot quit Foxpro.

I closed out of VFP prior to running this from the EXE in explore window
 
(That should be the same behavior on any other system after installing.)

What code is called by the "done" button?
 
thisform.release is what is called in the done button
 
OK, where is your CLEAR EVENTS?

If you intend for this application to exit when the form closes, I'd put it in the form's RELEASE method, I suppose.
 
I have the clear events now in the form's release method, but it still leaves it open, do I have to use a quit?
 
I'd put clear events in the unload method of the form.

Actually, I think you have turned your form modal and so the READ EVENT just occurs after the form closes, that's what keeps your exe running. Turn your form to be NONMODAL, then and only then READ EVENTS and CLEAR EVENTS is actually needed.

See?

If the form is modal you don't return to the main program before the form releases. And only after that the READ EVENTS is executed, making vfp go into a empty "loop" waiting for, "reading" events. The "loop" is that single command.

That's what READ EVENTS is for. If your form is modal, then that alone will keep vfp inside the form, and keeps the form active and running and reading events.

So simply turn your form windowtype=0, meaning non modal, then recompile and run the exe from windows explorer again.

Bye, Olaf.

Bye, Olaf.
 
ok, so that works, now what can I do to make it work after using installshield express and running the setup program, it still seems to not run when I click on the program
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top