The information in this article applies to:
SYMPTOMSAttempting to enumerate connection points with the IEnumConnectionPoints interface results in a general protection (GP) fault. Specifically, attempting to call the IEnumConnectionPoints::Next() method cause a GP Fault. CAUSEThe problem occurs in the CEnumConnPoints::OnNext() function located in the CDK source file CTLCONN.CPP.
AddRef() is called through an improperly dereferenced pointer. The line of
code should be this:
RESOLUTIONCurrently, there is no workaround for this problem. Avoid enumerating connection points. You can also retrieve connection points with the IConnectionPointContainer::FindConnectionPointFromIID() function. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual C++ version 5.0. MORE INFORMATIONVisual C++ Version 2.x Sample Code to Demonstrate Problem
Additional query words: GPF
Keywords : kbole kbprg kbCtrl kbMFC kbVC kbVC500fix |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |