Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » what is the largest Array size please? ("out of memory" error)
what is the largest Array size please? ("out of memory" error) [message #14915] Wed, 19 March 2008 18:11 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
I am dealing with large amounts of data and was attempting to dimension an array of the form

typedef WithDeepCopy<Array <doubleArray> > d2Array;

where doubleArray is defined as

typedef WithDeepCopy<Array <double> > doubleArray;

the d2Array enables me to have large fast grids of double precision floats and refer to it conveniently as

myArray[x][y]

Most of the time this works fine but when I tried to dimension a grid of doubles with

number of x = 13393
number of y = 5951

it falls over with "Out of memory" error. Now I would expect this to happen as the array size approaches 2GB but this array size appears to be a "mere" 617MB Smile

I have 4GB (3.2GB usable) of memory on my PC and it wasn't anywhere near all used up. It fell over about 2/3 of the way through dimensioning.

Is this by design or a fault?

Nick






 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ChatClient with Ultimate++
Next Topic: What about "::" in LoadIniFile?
Goto Forum:
  


Current Time: Tue Jul 08 10:59:00 CEST 2025

Total time taken to generate the page: 0.03403 seconds