2 more questions (VFP8)

(1) I've made and deployed a simple app. with its own helpfile, but when deployed, nothing happens when I press F1. (It is not, that the app cannot locate the helpfile. If I rename it, I get an error when starting the program.). Any suggestions?

(2) The other problem is, that about one in every 4 times I close the program, the process keeps hanging and thus locking my datafiles. (When I kill the process, the datafiles are corrupted, when I start the app again). Any suggestions?

[485 byte] By [PC-Gram] at [2008-2-6]
# 1
1) did you SET HELP TO yourfile.chm somewhere in your program? Did you ship the HTML help runtime libraries with your application? What happens if you double click the help file in Explorer?

2) you need to give us more info. What does your program do when you close it? Try to set a break point in the debugger right before the app's cleanup code is executed and step through the code to determine which line is failing

EricdenDoop at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2

(1) In my effort to reduce setup package I left out HTML support files. I'll put'm back.

(2)
My clean up code is as follows:

Main windows destroy event:
thisform.release

Terminate program button click event
CLOSE TABLES
USE xxtable
DELETE FOR LEN(TRIM(name))=0
PACK
USE
QUIT

Main program after READ EVENTS:
SET HELP TO && I've put this only for development purpose

PC-Gram at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 3

Make sure you install all FOXHHELP*.* and you register the DLLs.

foxhhelp.exe
hhctrl.ocx
hhw.exe

example:
regsvr32 \<fullpath>\foxhelpps.dll

AlexFeldstein at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 4
You say you have a READ EVENTS, but I don't see a CLEAR EVENTS. Try the following sequence:

* startup prg
DO mainform
READ EVENTS
* clean up code here
CLOSE TABLES
RETURN

* terminate button click event:
thisform.release
CLEAR EVENTS

EricdenDoop at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 5
The PACK command only works if you open the table exclsuively. Could it be that there's an error on this line and the error handler attempts to quit the application, too? I've seen a strange effect in VFP in this case. The main screen starts flickering, that is the icon disappears, appears, disappears, etc. The only way to kill VFP in this case is to use the TaskManager.
ChristofWollenhaupt at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...