PRB: SET PROCEDURE TO causes unknown error with FoxPro DLL (306079)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q306079 SYMPTOMS
If a COM dynamic-link library (DLL) which uses SET PROCEDURE TO is
instantiated more than once, the Init method of the second instance may fail with one of the following messages:
OLE error code 0x80004005: Unspecified error.
OLE error code 0x80020009: Exception occurred.
CAUSE
To instantiate an OLEPUBLIC class, Visual FoxPro must be able to find all the code for the class. There is an internal SET PROCEDURE/SET CLASSLIB to detect all the related code; if you try to change this setting, an error occurs.
RESOLUTION
Use SET PROCEDURE TO with the ADDITIVE keyword.
STATUS
This is by design.
Modification Type: | Major | Last Reviewed: | 11/28/2005 |
---|
Keywords: | kbCodeSnippet kbpending kbprb KB306079 |
---|
|