Article ID: 312218 - View products that this article applies to.
This article was previously published under Q312218
This article has been archived. It is offered "as is" and will no longer be updated.
If a multithreaded process hosts in-process Visual Basic ActiveX components (.dll or .ocx files), the multithreaded process may experience a deadlock or may stop responding (hang).
Examples of multithreaded processes include:
There are many causes for a deadlock in a multithreaded process. One possible cause is the use of Visual Basic 6.0 ActiveX components with Declare statements for application programming interfaces (APIs).
To work around this problem, remove the Declare statements in the ActiveX .dll or .ocx projects, and use a type library to declare those APIs instead. For additional information about how to create and use a type library, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/189133/ )How to make C DLL more accessible to VB with a type library
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.