Microsoft KB Archive/305716

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

Article ID: 305716

Article Last Modified on 12/5/2007

-

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.

Keywords: kbbug kbcompluslce KB305716

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.