BUG: GlobalMultiUse Class Does Not Terminate in Multithreaded Environment (300850)
The information in this article applies to:
- Microsoft Visual Studio 6.0 SP4
- Microsoft Visual Studio 6.0 SP5
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP5
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q300850 SYMPTOMS When two clients call a procedure of an ActiveX EXE
component at the same time, and this procedure calls another procedure of a
MultiUse class in an ActiveX dynamic-link library (DLL), if this class accesses
a procedure in a GlobalMultiUse class in another ActiveX DLL, the ActiveX EXE
component stays in memory; that is, the process fails to terminate, even after
all the references to it have been released.
This behavior does not
occur in Visual Basic 6.0 Service Pack 3 (SP3) or earlier. CAUSE This problem occurs because the DllCanUnloadNow function of the GlobalMultiUse DLL returns FALSE if it is
currently being called by another thread. This means that the GlobalMultiUse
DLL may not be able to release itself in a multithreaded environment.
RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem. Note You must have a Visual Studio license agreement to obtain this hotfix. To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of
this fix should have the following file attributes or later:
Date Time Version Size File name
---------------------------------------------------------
29 May 2001 3:32:23 PM 6.0.92.37 1.32 MB Msvbvm60.dll
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/21/2005 |
---|
Keywords: | kbBug kbLocalSvr kbpending kbQFE KB300850 kbAudDeveloper |
---|
|