Article ID: 245096 - Last Review: January 25, 2007 - Revision: 3.1

"Access Violation in MSHTML" Error Message in Internet Explorer 5

This article was previously published under Q245096
Expand all | Collapse all

SYMPTOMS

When you are using Internet Explorer 5 and you move between HTML "submit" buttons, you may receive a general protection (GP) fault error message similar to:
The instruction at "0x70c56780" referenced memory at "0x00000000. The memory could not be "read".

Click on OK to terminate the application
Click on CANCEL to debug the application
When you view the Dr. Watson log after this error occurs, the logged access violation may be similar to:
Application exception occurred:
App: exe\explorer.dbg (pid=134)
When: 12/12/1997 @ 23:19:42.27
Exception number: c0000005 (access violation)

CAUSE

Three conditions must exist for this behavior to occur:
  • The FORM tags overlap the TABLE tag.
  • The HTML FORM submit buttons are very close together.
  • You move the mouse pointer rapidly between the two buttons.
The following sample HTML code demonstrates the general improper tag format:
<FORM>
<TABLE><TR><TD>
<SUBMI></FORM><TD>
<TD>
<FORM><SUBMIT></FORM>
<TD><TR>
</TABLE>
This sample code snippet reproduces the problem:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
Problem:
<FORM>
<TABLE><TR><TD>
<INPUT TYPE="SUBMIT" NAME=Button1"></FORM></TD>
<TD>
<FORM>
<INPUT TYPE="SUBMIT" NAME=Button2">
</FORM>
</TD></TR>
</TABLE>
</BODY>
</HTML>

WORKAROUND

You can avoid this condition by moving the two buttons farther apart, or by placing the begin and end FORM tag outside of the begin TABLE and end TABLE tags or inside the TABLE tags.

Sample workaround:
<TABLE><TR><TD>
<FORM><SUBMIT></FORM>
</TD>
<TD>
<FORM><SUBMIT></FORM>
</TD></TR>
</TABLE>
This sample code snippet demonstrates the workaround in HTML:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
Work around:
<TABLE><TR><TD>
<FORM><INPUT TYPE="SUBMIT" NAME=Button1"></FORM>
</TD>
<TD>
<FORM><INPUT TYPE="SUBMIT" NAME=Button2"></FORM>
</TD></TR>
</TABLE>
</BODY>
</HTML>

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem has been resolved in Internet Explorer 5.01.

MORE INFORMATION

This problem does not occur in Internet Explorer version 4.01.

APPLIES TO
  • Microsoft Internet Explorer 5.0
Keywords: 
kbfix kbprb kbprogramming KB245096
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers