PRB: In-Process Server Fails on CREATEOBJECT in VFP Run Time (162081)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
This article was previously published under Q162081 SYMPTOMS
Doing a CREATEOBJECT on a Visual FoxPro in-process OLE-server inside a
Visual FoxPro run-time application gives the following error messages:
Windows 95:
"This program has performed an illegal operation and will be shut down"
Windows NT:
"The instruction at <memory address> referenced memory at <memory
address>. The memory could not be read"
CAUSE
The run-time .exe file and the in-process OLE-server .dll file are using
the same instance of Vfp500.dll, which has global variables that have
different values depending on whether it is called from a .dll file or an
.exe file .
RESOLUTION
NOTE: Your .exe file and your in-process server .dll file need to be in
different folders, and each needs its own set of Visual FoxPro run-time
files.
- Copy the following Visual FoxPro runtime files from your System
folder(System32 on NT) into the directories where your .exe file and
.dll file are located:
Vfp500.dll
Vfp5enu.dll (Last three letters change with localized versions)
- Delete the Visual FoxPro run-time files from of your System folder.
Step 2 is required because Visual FoxPro looks in the System folder before
looking in the current folder. VFP 5.0a does not need Step 2 because the
stub loader looks in the current folder for Vfp500.dll.
Modification Type: | Major | Last Reviewed: | 8/6/1999 |
---|
Keywords: | kbenv kbprb KB162081 |
---|
|