PRB: PUBLIC Variables Not Released from InProcess Servers in ASP (247319)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q247319 SYMPTOMS
Public variables declared in an in-process Microsoft Visual FoxPro OLE Automation Server, launched from an ASP page, are not released when the OLE Automation Server is released.
CAUSE
PUBLIC variables declared within an in-process OLE Automation Server are public to the thread and any object on the thread. PUBLIC variables are not released until the thread has been uninitialized and the client has unloaded the in-process server. Setting the instance of the in-process server object to "nothing" does not unload the server.
RESOLUTION
Set the scope of variables used within in-process OLE Automation Servers, used with Active Server Pages, to PRIVATE rather than PUBLIC.
STATUS
This behavior is by design.
REFERENCES156547 HOWTO: Manually Register a Custom OLE Server
156014 HOWTO: Set Up OLE Automation in Visual FoxPro
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbAutomation kbDSupport kbprb KB247319 kbAudDeveloper |
---|
|