Silvio a Beccara wrote:
what is the maximum dimensions of a GPC dynamic array? In one of my codes, which used to compile fine with following GPC version:
gpc version 2.1 (20020510), based on 2.95.2 19991024
This version doesn't do any range checking. This means the code may have worked incorrectly, unnoticed.
type
PMatr3Dob10 = ^TMatr3Dob10; TMatr3Dob10 (Size1, Size2, Size3: Integer) = array [ 0 .. Size1, -1..Size2, 0..Size3 ] of double;
var jaekets: PMatr3Dob10;
[ ... ]
new ( jaekets, dim1, 4 * neact, 1000 );
where dim1 = 100000, neact=2
Now, with GPC version 20050331, based on gcc-3.4.3, I get the following error:
value out of range (error #300 at 80c00b8)
Is there a way of overcoming this limitation?
Are you using a 64 bit platform? This array would have a size of 6.4 GB which is not possible on 32 bit.
Frank