Microsoft KB Archive/261088

= FIX: Stack overflow in native code causes Internet Explorer to stop responding =

Article ID: 261088

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Java Virtual Machine

-



This article was previously published under Q261088



SYMPTOMS
When you run the simple applet described in the &quot;More Information&quot; 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.



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(&quot;Hello!&quot;); }

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

You can also view the applet when you use this HTML: 

