Array bug.

Blitz3D Forums/Blitz3D Bug Reports/Array bug.

Dim array(1,1)
For i = 0 To 5000
 	array(i,0) = 1
	Print i
	Delay 20
Next
End 

Sorry if this is not a bug or has been reported already.

If you turn debug on it would give array index out of bounds after i goes pass 1.

If you turn debug off it gives an MAV and a other error when i gets past 1000ish.

...array index out of bounds...
This should answer your question already ?

------------------------
www.moonworx.de

It's not a bug.

simple answer - blitz doesnt do bounds checking when debug is turned off...

Try this:

Dim array(5000,1)
For i = 0 To 5000
array(i,0) = 1
Print i
Delay 20
Next
End