Good morning,
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
I have the following dimensioning:
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?
Thanks and regards
Silvio a Beccara
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Jamba: Personalizza il tuo cellulare con le TOP suonerie!
* La prima suoneria รจ GRATIS! Scaricala ORA!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3604&d=13-1
On 13 Jan 2006 at 12:27, Silvio a Beccara wrote:
Good morning,
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
I have the following dimensioning:
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)
Either ensure that the value does not go beyond the permitted range (best solution), or turn off range checking when compiling (not generally a good idea while testing your code).
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.greatchief.plus.com/
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