Article ID: 297699 - Last Review: May 8, 2002 - Revision: 1.0

FIX: COM+ User Events That Are Posted as SAFEARRAYs Do Not Work

This article was previously published under Q297699
Expand all | Collapse all

SYMPTOMS

Posting a COM+ User event as a SAFEARRAY fails.

CAUSE

The IMtsEvents::PostEvent method takes a variant to post a user-defined event to the event sink. The CComVariant::WriteToStream and CComVariant::ReadFromStream methods are used to marshal this variant. Because CComVariant does not handle variants of type VT_ARRAY, sending a SAFEARRAY fails.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910  (http://support.microsoft.com/kb/260910/EN-US/ ) How to Obtain the Latest Windows 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

APPLIES TO
  • Microsoft COM+ 1.0
Keywords: 
kbbug kberrmsg kbfix kbwin2000presp2fix KB297699
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations