Stack Overflow Errors When You Upgrade to Windows Scripting Host version 5.6 on Internet Explorer version 5.x (325453)



The information in this article applies to:

  • Microsoft Internet Explorer 5.5 for Windows 2000 SP 1
  • Microsoft Internet Explorer 5.5 for Windows 2000 SP 2
  • Microsoft Internet Explorer 5.01 for Windows 2000 SP 1
  • Microsoft Internet Explorer 5.01 for Windows 2000 SP 2
  • Microsoft Internet Explorer 5.01 for Windows 2000 SP 3
  • Microsoft Internet Explorer 5.5 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 5.5 for Windows NT 4.0 SP 2
  • Microsoft Internet Explorer 5.01 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 5.01 for Windows NT 4.0 SP 2

This article was previously published under Q325453

SYMPTOMS

When you upgrade from Windows Scripting Host version 5.1 to Windows Scripting Host version 5.6, especially if you are using Internet Explorer versions 5.x, you may receive "stack overflow" error messages in scripts that use recursion.

CAUSE

This problem occurs because Windows Scripting Host version 5.6 consumes about three times more stack space than Windows Scripting Host version 5.1.

RESOLUTION

To resolve this problem, upgrade to Internet Explorer version 6 or later because the maximum committed stack size has been increased from 256 KB to 1 MB.

WORKAROUND

If you cannot upgrade to Internet Explorer version 6 or later, or if you are already using this version, to work around this problem, rewrite your code to use iteration instead of recursion.

STATUS

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

Modification Type:MinorLast Reviewed:1/14/2006
Keywords:kbbug kbfix KB325453