Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 174685 - Last Review: December 1, 2003 - Revision: 2.0
PRB: VBScript Out of Memory Error When ASP Contains 64 For/Next
This article was previously published under Q174685
The following error occurs when you preview an Active Server Pages (ASP)
page that contains 64 or more For/Next loops:
Microsoft VBScript compilation error '800a03e9'
Out of memory
NOTE: The loops do not have to be executed, for example, they can be within a case statement that is never executed.
This is caused by a bug in the VBScript.dll 2.0.
This problem has been fixed in the VBScript.dll 3.0, which is released with Internet Explorer 4.0 and Internet Information Server 4.0
Steps to Reproduce Behavior
- Copy the code below into an ASP page. Be sure to fill in the missing 62 For/Next loops.
- Preview the file in a browser. You receive the Microsoft VBScript compilation error "'800a03e9' Out of Memory".
- Open the file in an editor and remove or comment out one of the For/Next loops.
- Save and preview the file in a browser. No error appears.
The expected behavior is no limitation on the number of For/Next loops.
<HTML>
<BODY>
<%
For x = 1 To 1
Response.Write "Hello1"
Next
%>
<P>
<%
For x = 1 To 1
Response.Write "Hello2"
Next
%>
.
.
(removed next 62 For/Next loops to conserve space)
.
.
<%
For x = 1 To 1
Response.Write "Hello65"
Next
%>
<P>
</BODY>
</HTML>
APPLIES TO
- Microsoft Active Server Pages 4.0
- Microsoft Visual Basic, Scripting Edition 1.0
- Microsoft Visual Basic, Scripting Edition 1.1
- Microsoft Visual Basic, Scripting Edition 2.0
| kberrmsg kbprb kbscript KB174685 |
Retired KB Content DisclaimerThis 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.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate