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 = [];
		for (i in 0...10000)
			result[i] = [];
			for (j in 0...10000)
				result[i][j] = [];
				result[i][j][0] = * 100000);
				result[i][j][1] = * 100000);
				result[i][j][2] = * 100000);
				result[i][j][3] = * 100000);

What i’m missing here?

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:

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.