Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
BUG: Error message when an MFC application contains an event handler that uses the CRichEditView::FindText method or the CRichEditView::FindTextSimple method in Visual Studio 2005: "Debug Assertion Failed"
Article ID: 922318 - View products that this article applies to.
Consider the following scenario:
Debug Assertion Failed!
To work around this problem, call the CRichEditView::TextNotFound method immediately after a call to the CRichEditView::FindText method or to the CRichEditView::FindTextSimple method returns false. The CRichEditView::TextNotFound method resets the internal search state of the CRichEditView class instance.
The following code example demonstrates how to use the CRichEditView::TextNotFound method.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the problem
For more information about the CRichEditView class, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/bcb28z09.aspxFor more information about the CRichEditView::TextNotFound method, visit the following MSDN Web site:
Article ID: 922318 - Last Review: January 12, 2007 - Revision: 1.1