Dim command Error

Archives Forums/BlitzPlus Bug Reports/Dim command Error

DjBigWorm(Posted 2009) [#1]
HI,

Here is the sample code that caused crashes.

Dim blue(200,1000,1000)

It causes and error on both blitzplus and blitz 3d.
I am using blitz plus version 1.46

The above only fails when some progs are running for example flashget 1.9.XX

I can have the error stop when I change the above to
Dim blue(189,1000,1000) or Dim blue(200,1000,100)
and it seems to work.

If i stop flashget the original Dim blue(200,1000,1000) works fine.

Is there something about the Dim Command I should know or something that can't be helped?

Thanks in Advance for you time. Thank you for a great product.

Sincerly,

DJ Big Worm


Matty(Posted 2009) [#2]
Do you have more than 800MB of system ram, as that is how much you are roughly allocating when you run that. It ran fine on my machine but then I don't have flashget....whatever that is.


xlsior(Posted 2009) [#3]
In addition to using 800MB -- doesn't it also have to be contiguous?


DjBigWorm(Posted 2009) [#4]
Hi,

I see, hmm, didn't realize it was that much memory at once!!!
Ok, that makes sence I will make things smaller thank you for the insight.
Sincerly,
Dj Big Worm


xlsior(Posted 2009) [#5]
I see, hmm, didn't realize it was that much memory at once!!!


It's easy to overlook, but:

200 * 1000 * 1000 = 200,000,000 * 4 (4 bytes per integer) = 800MB


Stamm(Posted 2010) [#6]
bit less because 1mb=1024kb and 1kb=1024 byte