BUG: IDE Crash with Compiled GlobalMultiUse (187983)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q187983 SYMPTOMS
If the Terminate event of a GlobalMultiUse class calls a procedure in
another DLL, and if the same GlobalMultiUse class had previously called the
same DLL, then you receive an error and the IDE may crash.
With Visual Basic 5.0, you may receive one of the following errors:
Exception: privileged instruction (0xc0000096), Address: 0x00186a3a
VB5 caused an invalid page fault (or general page fault)
With Visual Basic 6.0, the IDE does not crash, but you may receive the
following error:
Run-time error '-2147418105 (80010007)':
Automation error
This error translates to:
"The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed."
CAUSE
This problem can occur when the ActiveX components are not shut down in the
necessary order when your client application ends. For example, suppose
your client application uses two ActiveX DLLs (DLL1 and DLL2). If the
Terminate event of a class in DLL2 calls a procedure in DLL1, but DLL1 has
been shut down before DLL2, you can experience this problem because the
procedure in DLL1 is unavailable. The "Steps to Reproduce Behavior" section
of this article demonstrates this scenario and shows how to work around the
problem by controlling the order in which the two DLLs shut down.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
REFERENCES
For more information about ActiveX component shutdown guidelines, please
refer to Appendix B: ActiveX Component Standards and Guidelines in the
Visual Basic Components Tools Guide
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | kbbug kbGrpDSVB KB187983 kbAudDeveloper |
---|
|