FIX: Stack overflow in native code causes Internet Explorer to stop responding (261088)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 4.01 SP1
  • Microsoft virtual machine

This article was previously published under Q261088

SYMPTOMS

When you run the simple applet described in the "More Information" section of this article, Internet Explorer 5 stops responding (crashes).

CAUSE

An infinite loop is entered, which causes the stack to overflow while in native code.

STATUS

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

This problem was corrected in Windows 2000 Service Pack 1.

MORE INFORMATION

Steps to Reproduce Behavior

To reproduce this problem, you can compile the following code:
import java.applet.Applet;
import java.awt.TextArea;
import java.awt.event.TextListener;
import java.awt.event.TextEvent;

public class CrashIE extends Applet implements TextListener {
  private TextArea field = new TextArea();

  public void init() {
    field.addTextListener(this);
    add(field);
    field.setText("Hello!");
  }

  public void textValueChanged(TextEvent evt) {
    field.setText("");
  }
}
				

You can also view the applet when you use this HTML:
<applet code=CrashIE width=1 height=1></applet>
				

REFERENCES

For additional information about the latest service pack for Windows 2000, click the article number below to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbAwtPkg kbBug kbfix kbJavaVM33xxfix kbJNative kbWin2000sp1Fix KB261088