Microsoft Knowledge Base Email Alertz

Error message when Internet Explorer 6 uses a DHTML Edit control: R6052 pure virtual function call

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 929068 - Last Review: May 16, 2007 - Revision: 1.4

Error message when Internet Explorer 6 uses a DHTML Edit control: "R6052 pure virtual function call"

SYMPTOMS

When you host a Dynamic HTML (DHTML) Edit control, Microsoft Internet Explorer 6 or another application that uses the control crashes. Additionally, you receive the following error message:
R6052 pure virtual function call
This problem occurs if the following conditions are true:
  • You loaded a page that uses the JavaServer pages (jsp) namespace.
  • The page calls the ShowDetails method of the control.

RESOLUTION

A hotfix for this problem is included in the Internet Explorer 6 update that was released in December 2006. To obtain this hotfix, visit the following Microsoft Web site:
http://update.microsoft.com (http://update.microsoft.com)

WORKAROUND

To work around this problem, use one of the following methods:
  • Do not use the xmlns:jsp="" namespace.
  • Use the “Safe for Scripting” version of the control for computers that are running Internet Explorer 6.

    Note Internet Explorer 7 sets the "kill" bit for the "Safe for Scripting" version of the control. However, a separate installation of the DHTML Editing Control for Applications component is available for Windows Vista. This separate installation provides compatibility for Windows applications that may rely on this control. To download the DHTML Editing Control for Applications component that is available for Windows Vista, visit the following Microsoft Web site:
    http://www.microsoft.com/downloads/details.aspx?FamilyId=B769A4B8-48ED-41A1-8095-5A086D1937CB&displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyId=B769A4B8-48ED-41A1-8095-5A086D1937CB&displaylang=en)
    For more information about how to set the "kill" bit for an ActiveX control, click the following article number to view the article in the Microsoft Knowledge Base:
    240797  (http://kbalertz.com/Feedback.aspx?kbNumber=240797/ ) How to stop an ActiveX control from running in Internet Explorer
  • Do not use existing DHTML Edit controls. Instead, use MSHTML Editing to achieve the desired functionality. For more information about MSHTML Editing, visit the following Microsoft Web site:
    http://msdn2.microsoft.com/en-us/library/Aa741314.aspx (http://msdn2.microsoft.com/en-us/library/Aa741314.aspx)

MORE INFORMATION

The following sample HTML page and Test.txt file will generate this problem.

Sample HTML page
<HTML>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<TITLE></TITLE>

<script>

function test()

{

            DHTMLEdit1.LoadURL("http://server/test.txt");  DHTMLEdit1.ShowDetails = true; 

}

</script>

</HEAD>

<BODY>

<OBJECT id=DHTMLEdit1 style="LEFT: 0px; WIDTH: 256px; TOP: 0px; HEIGHT: 233px" 

classid=clsid:2D360200-FFF5-11D1-8D03-00A0C959BC0A VIEWASTEXT></OBJECT>

<BUTTON onclick=test()>Click</BUTTON>

</BODY>

</HTML>
Sample Test.txt file
<HTML xmlns:jsp="">
<BODY designMode=on>
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment> 
 <jsp:Comment></jsp:Comment>
 <DIV> 
  <DIV> 
   <DIV> 
    <DIV style="float:right; vertical-align: middle;margin-top:1px"> 
    </DIV> 
   </DIV> 
  </DIV> 
  <DIV style="height:64%; overflow-y:scroll;"> 
  </DIV> 
   
 </DIV>

APPLIES TO
  • Microsoft Internet Explorer 6.0
Keywords: 
kbtshoot kberrmsg kbbug kbprb KB929068
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate