这段代码有什么问题?asp.net vb.net可以任何一个解释出了什么问题?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim i As Integer = 0
Do
Response.Write("hello")
Loop While i < 5
End Sub
我有错误
System.OutOfMemoryException was unhandled
Insufficient memory to continue the execution of the program.
任何人都可以解释为什么我有错误?
你永远不会增加我。所以你的循环永远持续 –
@DavidCram这也是我的第一个想法,但我无法弄清楚为什么会导致'OutOfMemoryException'。我想知道是否缓冲了Response.Write输出,并且他最终将为该缓冲区提供任何可用的内存。 –
@DavidCram thanx它是解决我的问题 –