main logo
Subject: Forms in EXE do not release
Author: Mike Devlin
Posted: 2002/02/14 10:53:08
 
View Entire Thread
New Search


Hey all,
I am finally at the point of rolling out my first CodeBook app. Unfortunately, I have run across a problem that I have been tangling with for a week now. I build an exe, run it and the forms will not close. I have gone through the old forum notes on the topic. I have packed all the project libraries (a, i, and c-layers). I have run =startcb(.T.). I have looked for dangling references and have found none. I have traced through the code and QueryUnload returns .T. I am at a loss as to why this is happening. If I use the exe on a machine that has VFP installed, and do not have the vfp6r.dll and vfp6renu.dll files in the same directory, all is well. But when I create the exe folder on a client machine without VFP installed and have the dll's in the same folder, the forms will not die.
I have the following in the exe folder:
config.fpw (the same file as in my development tree
debug.txt
foxuser
startcb
vfp6r.dll
vfp6renu.dll
and the security folder with the walsh64.txt file in it.

The process I go through to kill the form is like this. I click cancel on the form (which runs Thisform.Cancel() then Thisform.QueryUnload() then ThisForm.Release()), which kills the data on the form. I click the file menu tab, but nothing is enabled. I click the 'X' on the form and the options become available on the file menu tab. I click exit, and I get the following error message:
Microsoft Visual FoxPro
Fatal Error: Exception Code = C0000005
Called from - setup line 147 {h:ajdappscommonprogssetup.prg}
Called from - main line 11 {h:ajdapps
ccapbudgetprogsmain.prg}

I click OK and the session ends.

There has got to be something I am missing, or have included and should not have. I am working on an NT box SP 6. I am using CodeBook 6.0 files.

Please let me know if anyone can duplicate this behavior, or has any helpful hints as to how to handle this dilemma.
Devman
mdevlin .AT. ajdebruin DOT com

 
©2002 Mike Devlin
<-- Prior Message New Search Next Message -->