I am having trouble with the memory size of an array I am using. At the moment I have an array to pointers of objects. These objects get read in from a file and sorted, then a new file is outputted after some filtering is done on the array.
The code I have set up works great up to about a 500 megabyte file. After that though I get a memory access error when I try to create the array.
Lidar * DataSet = new Lidar[header->number_of_point_records];
That is how I am creating my array.
Is there any way to make a huge array or will I have to look into using hard disk space as a memory alternative?