Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fatal Error When Exiting VFP6 Compiled Application
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00160696
Message ID:
00160709
Views:
13
>>Greetings!
>>
>>I created an EXE of a VFP6 application on our network. I'd like to know which DLLs are necessary in order to run it on a PC which does not already have VFP6 installed. Currently, I am getting a Fatal Error, with an Exception code of C0000005, as the application is closed.
>>
>>The DLLs I am using are VFP6R.DLL, VFP6ENU.DLL, and VFP6RENU.DLL. I am I missing a file? This application works correctly when compiled in VFP5, however I am migrating my applications to VFP6.
>
>Win95 machines will need to have DCOM installed before running a VFP application; Win98 and NT 4.0 systems should already have DCOM support installed.
>
>I'd suggest creating your install (at least the VFP 6 Runtime portion) with the Setup Wizard rather than attempting to copy files, since the VFP runtime files also have dependencies on other common libraries (like the various MSVCRT and MFC .DLLs) which need to be brought up to date properly. The Setup Wizard should handle this for you. Guessing at file dependencies and versions is a good way to mess up an install, and in some cases, a working system. If you do roll your own and don't use a third-party product like InstallShield to manage the installation of system components, you'll need some of the facilities of the Win32 Setup API to help in copying and registering .DLLs that may already be resident in memory.
>
>Unfortunately, Setup Wizard doesn't address the DCOM install, which can force a reboot during the install process; you can download the DCOM installs from Microsfot's Web page. If you need to encapsulte the entire install into a single process, you'll need a seaprate install scripter such as InstallShield or the Windows Scripting Host. It's simpler to do the DCOM install before attempting to run the VFP Runtime install created by the Setup Wizard.

Thanks for writing, Ed!

You are making a good point. The problem with using an installation process is that I have no idea who will be running the application on the network. I have a small launcher, written in Visual Basic, which is the starting point for the networked applications I create.

When someone wants to run a VFP application, the launcher first checks if the required DLLs are present on their PC, and installs them if they're not found. Afterwards, the VFP application starts to load. This works flawlessly with VFP5 but, unfortunately, not so with VFP6 (apparently).

Some of our users are not computer-saavy enough to go through a simple installation process, unless it operates completely automatic. Ideally, if I need to perform an installation, I'd like to have it run itself without intervention when they click the program icon, and then automatically launch the installed application.

Sometimes progress is a pain if we lose the simplicity of the past. [sigh]

Thank you!

Michael Reynolds
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform