Help and Support
 

powered byLive Search

BUG: Deadlock in multithreaded process if you use Declare statements for APIs in Visual Basic ActiveX .dll files or .ocx files

Article ID:312218
Last Review:June 8, 2004
Revision:4.0
This article was previously published under Q312218

SYMPTOMS

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:
Microsoft COM+ (Dllhost.exe)
Microsoft Internet Information Server (Inetinfo.exe)
Microsoft Transaction Server (Mtx.exe)

Back to the top

CAUSE

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).

Back to the top

WORKAROUND

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:
189133 (http://support.microsoft.com/kb/189133/) How to make C DLL more accessible to VB with a type library

Back to the top

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

Back to the top


APPLIES TO
Microsoft Visual Basic 6.0 Enterprise Edition

Back to the top

Keywords: 
kbbug kbnofix KB312218

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.