system.outofmemoryexception

DR00ME

Well-known member
Joined
Feb 6, 2004
Messages
169
Location
Finland
Dim ABC(76240, 76240, 76240) As Byte

so any suggestions ? is the processor cache limit ?
im getting system.outofmemoryexception when it try to reserve memory for this array...

Do I have to cut it in pieces.... ?
 
Last edited by a moderator:
You are requesting 4429153651200 (76240 ^^ 3) bytes.
That is 4325345362 KB.
That is 4223970 MB.
That is 4124 GB
You are requesting approx 4 TeraByte of memory.
Thats a lot of stuff, even for a virtual memory system :-)
 
this..

Store 76000 rgb combinations to 3 dimensional array....1 dimension is for R values... one for G and one for B.
 
problem solved.... seems like multidimensional arrays take more memory than 3 separate arrays(well you put em together it makes 3 dimension) ... ... im confused... anyway...
 
Back
Top