Haxe cpp memory usage limit?

I have a lot of data to process… more then 2.8 GB

it’s seems there is some sort of limit, program crashes after reaching 2.8 GB of ram. i.m using hxcpp_m64, doesn’t help.

just a simple example:

var result = [];
		result.setSize(10000);
		
		for (i in 0...10000)
		{			
			result[i] = [];
			result[i].setSize(10000);
			
			for (j in 0...10000)
			{
				result[i][j] = [];
				result[i][j].setSize(4);
				result[i][j][0] = Std.int(Math.random() * 100000);
				result[i][j][1] = Std.int(Math.random() * 100000);
				result[i][j][2] = Std.int(Math.random() * 100000);
				result[i][j][3] = Std.int(Math.random() * 100000);
			}
		}

What i’m missing here?

Hello,
there is a define HXCPP_GC_BIG_BLOCKS which allow working memory greater than 1 Gig.
Try it and maybe it will help.

Also, check this page, maybe you’ll find something useful:

Hey,
I tried your piece of script (Haxe version) and it works on different targets (Neko, CPP).

What’s your operating system ?
I know that Windows have memory limitation : 2gb on 32 bits apps, and 4gb on 64bits apps.