BUG: COM+ Component That Subscribes to IComMethodEvents and Has Events Enabled Causes Infinite Loop (305716)



The information in this article applies to:

  • Microsoft COM+ 1.0
  • Microsoft COM+ 1.5

This article was previously published under Q305716

SYMPTOMS

If a COM+ component subscribes to IComMethodEvents and has the Component Supports Events and Statistics option enabled, an infinite loop may occur when any method on the component is called.

CAUSE

When any method on the COM+ component is called, its IComMethodEvents::OnMethodCall event is fired. Because this event is implemented as another method in the component, yet another event is triggered when COM+ calls into this method. As a result, COM+ responds by calling into the OnMethodCall method repeatedly, causing the infinite loop.

RESOLUTION

To work around this problem, clear the Component Supports Events and Statistics check box for the component that subscribes to IComMethodEvents.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:2/20/2002
Keywords:kbbug kbCOMPlusLCE KB305716