以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  List最大限问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=74602)

--  作者:magangzmc
--  发布时间:2015/9/15 10:19:00
--  List最大限问题
如果List(of string)超过32768会内存溢出,如何增大list的最大长度?
--  作者:Hyphen
--  发布时间:2015/9/15 11:20:00
--  
没有办法,Visaul Basic本身的限制
--  作者:大红袍
--  发布时间:2015/9/15 21:18:00
--  

溢出和你的内存大小有关吧?

 

Dim ls As new List(Of String)
For i As Integer = 1 To 50000
    ls.add(Rand.NextDouble)
Next
msgbox(ls.count)