局限性.NET的阵列的大小 [英] The Limitation On the Size of .Net Array
问题描述
我听说有.Net的阵列
大小的硬性限制。有人说,可以分配给阵列
对象(任何单个实例,无论它是否 INT [] 的最大内存量code>,
双[]
或你自己的数组)为2GB。不,如果你有一个64位机,2GB的限制依然存在。
I heard that there is a hard limit on the size of .Net Array
. It is said that the maximum amount of memory that can be allocated to any single instance of an Array
object ( regardless of whether it's int[]
, double[]
or your own array) is 2GB. And no, if you have a 64 bit machine, the 2GB limit is still there.
我不知道我的IM pression是否正确与否。任何人都可以证实?
I'm not sure whether my impression is correct or not. Anyone can confirm?
推荐答案
这是正确的。 没有单一的对象可以是大于2 GB 。
与32位Windows操作系统
系统上有一个2GB的限制
一个对象,你可以创建而大小
运行64位应用程序管理
在64位Windows操作系统。
As with 32-bit Windows operating systems, there is a 2GB limit on the size of an object you can create while running a 64-bit managed application on a 64-bit Windows operating system.
这问题有更多的细节和一些有用的链接:<一个href=\"http://stackoverflow.com/questions/1087982/single-objects-still-limited-to-2-gb-in-size-in-clr-4-0\">http://stackoverflow.com/questions/1087982/single-objects-still-limited-to-2-gb-in-size-in-clr-4-0
This question has additional details and some useful links: http://stackoverflow.com/questions/1087982/single-objects-still-limited-to-2-gb-in-size-in-clr-4-0
这篇关于局限性.NET的阵列的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!