FIX: Calling Virtual Functions in a COM Event Source May Cause Run-time Exception Errors (315470)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
This article was previously published under Q315470 SYMPTOMS If you call virtual functions in a Component Object Model
(COM) event source, as shown in the code sample in the "Steps to Reproduce the
Behavior" section of this article, you receive run-time exception errors when
you run the program. RESOLUTION To work around this problem, do one of the following:
- Remove virtual keywords, such as the virtual keyword for
Test2 in Test.cpp.
-or- - Remove the event code. For example, in Test.cpp, define SHOW_BUG to be 0.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This bug was corrected in Microsoft Visual C++ .NET (2003).
Modification Type: | Major | Last Reviewed: | 4/18/2003 |
---|
Keywords: | kbbug kbCompiler kbfix KB315470 |
---|
|