PRB: IObjectControl::Activate and Deactivate Are Not Called When Object Is Created in Caller's Context (276012)



The information in this article applies to:

  • Microsoft COM+ 1.0
  • Microsoft COM+ 1.5

This article was previously published under Q276012

SYMPTOMS

If a COM+ component that implements the IObjectControl interface is activated in the caller's context, the Activate and Deactivate methods of the IObjectControl interface are not called.

CAUSE

When a component is created in the caller's context, the client receives a direct reference to the component. Thus, COM+ has no way to intercept method calls to the component.

REFERENCES

For additional information on how to have a COM+ component activated in caller's context, click the article number below to view the article in the Microsoft Knowledge Base:

261096 HOWTO: Have a COM+ Component Activated in Its Caller's Context

For more information on IObjectControl, see the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:2/20/2002
Keywords:KbClientServer kbDSupport kbprb KB276012