Microsoft KB Archive/297699

From BetaArchive Wiki
Knowledge Base


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

Article ID: 297699

Article Last Modified on 5/8/2002



APPLIES TO

  • Microsoft COM+ 1.0



This article was previously published under Q297699

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

Keywords: kberrmsg kbbug kbfix kbwin2000presp2fix KB297699