Asp.net 多表动态数组溢出?

Asp.net 多表动态数组溢出?,asp.net,out-of-memory,dynamic-arrays,Asp.net,Out Of Memory,Dynamic Arrays,我有个问题,我正在用asp.net编程 我有一个多重动态数组 array_results(i, 0) = tmpdoc.Get("title") array_results(i, 0) += tmpdoc.Get("doc_typ") array_results(i, 1) = tmpdoc.Get("pfad") array_results(i, 2) = tmpdoc.Get("date_of_create") array_results(i, 3) = tmpdoc.Get("la

我有个问题,我正在用asp.net编程

我有一个多重动态数组

array_results(i, 0) = tmpdoc.Get("title")
array_results(i, 0) += tmpdoc.Get("doc_typ")    
array_results(i, 1) = tmpdoc.Get("pfad")
array_results(i, 2) = tmpdoc.Get("date_of_create")
array_results(i, 3) = tmpdoc.Get("last_change")
array_results(i, 5) = tmpdoc.Get("doc_typ")
array_results(i, 6) = CStr(score)
VarI大约是4426,我也用2377[文件,带有信息]对它进行了测试,我得到了一个内存验证错误

多动态数组是否可能获得一个oerflow


谢谢

我认为你应该研究一下如何使用IEnumerable,并阅读一下关键词yield和yield return以及yield break

实际上,使用一个将IEnumerable返回给调用方法的方法将有助于防止内存不足异常,特别是与我今天早些时候建议的模式结合使用时。。。