PRB: "Multi Use" Cannot be Selected Until .exe is CreatedLast reviewed: February 10, 1997Article ID: Q162298 |
The information in this article applies to:
SYMPTOMSWhen building an OLE Server, you may want to allow multiple users to access one instance of an OLE server executable. You can do this by selecting Multi Use in the Instances list that is located on the Servers tab in the Project Info dialog box. If the Project has not been built into an executable at least once, this selection is not available. This selection is only available after the executable has been built if olepublic is selected in the Class Info dialog box for a class in the Visual Class Library.
RESOLUTIONBuild the executable. When the library is displayed, select Multi Use.
STATUSThis behavior is by design.
MORE INFORMATIONThe Servers tab shows the class library name that is included in the project only after the executable has been built. So an OLE server executable that is designed to allow multiple users to access the same instance must be built at least twice. It must be built the first time so that the class library appears and you can select Multi Use for instancing. It must be built again so that the executable builds in multi use capability. Typically this is not a problem because the executable is built several times before it is made multi-user capable. The project does not know that the class is marked as olepublic until the executable is built.
Steps to Reproduce Behavior
NOTE: The same executable should not be used as an OLE server and as a standalone executable. If the executable is run as a standalone executable and then accessed as a server, two instances of the executable will run. The executable, running standalone, cannot be accessed as a server.
REFERENCES"Visual FoxPro Developer's Guide," version 5, page 441
|
KBCategory: kbole kbtool kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |