Microsoft KB Archive/929068

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

Article ID: 929068

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft Internet Explorer 6.0

-



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



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

Note Internet Explorer 7 sets the &quot;kill&quot; bit for the &quot;Safe for Scripting&quot; 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

For more information about how to set the &quot;kill&quot; bit for an ActiveX control, click the following article number to view the article in the Microsoft Knowledge Base:

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





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

Sample HTML page 





<TITLE></TITLE>

function test

{

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

}

</HEAD>

<BODY>

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

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

<BUTTON onclick=test>Click</BUTTON>

</BODY>

</HTML> Sample Test.txt file <pre class="fixed_text"><HTML xmlns:jsp=&quot;&quot;> <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=&quot;float:right; vertical-align: middle;margin-top:1px&quot;> </DIV> </DIV> </DIV> <DIV style=&quot;height:64%; overflow-y:scroll;&quot;> </DIV> </DIV>

Keywords: kbtshoot kberrmsg kbbug kbprb KB929068

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.