FIX: A DLL that was created by using Visual FoxPro 6.0 and that is running under Microsoft Transaction Server is slow to release connections (258736)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q258736 SYMPTOMS A dynamic-link library (DLL) created with Microsoft Visual FoxPro and
running under Microsoft Transaction Server is slow to release connections. This
behavior occurs when a DLL is running under Microsoft Transaction Server (MTS)
or Microsoft COM+ with Transaction Support marked as either "Required" or "Requires New."
CAUSE Releasing a COM server launched from a DLL under MTS or
COM+ with Transaction Support marked as either "Required" or "Requires New,"
initiates a call to CoFreeUnusedLibraries. When CoFreeUnusedLibraries is
called, COM+ calls the DllCanUnloadNow function in every COM DLL in the process. If that call returns TRUE, then COM unloads the DLL. RESOLUTION Using Visual FoxPro 6.0 with Microsoft Visual Studio 6.0
Service Pack 4 or later, add the following line of code to the Init method of the code used to create the multi-threaded DLL:
=SYS(2339,0)
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
This bug was corrected in the latest service pack for Visual Studio
6.0.
For additional information about Visual Studio service packs, click
the following article numbers to view the articles in the Microsoft Knowledge
Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the
following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbBug kbfix kbVS600sp4fix kbVS600sp5fix KB258736 |
---|
|