Skip to content

Allocating a big 2D array.

Vaughan

Asked Jun 18, 2009, 12:24 PM EDT1 answer
Share
LinkedInX
When I try to allocate a 64 000x 64 000 2D bool array, I get an out of memory exception. Allocating a 32,200 2D array isn't much of a problem. And when I allocate it my RAM stays stable. I have 3GB of RAM, why am I getting this exception? Is there something better to use than this?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    64K*64K ~= 4096K RAM. You will need to swap in and out from the file.
    0