Mac OS X Lion:Arrays in objects not properly init

Archives Forums/BlitzMax Bug Reports/Mac OS X Lion:Arrays in objects not properly init

Blueapples(Posted 2011) [#1]
I have some very simple objects initialized into arrays for my game. The following code compiled fine on previous versions of Mac OS X and BlitzMax.

SuperStrict

Type TTile
EndType

Type TScreen
	Field tiles:TTile[25, 19]
EndType
	
Local newScreen:TScreen = New TScreen
Local x:Int = 0
Local y:Int = 0 
newScreen.tiles[x, y] = New TTile


This code throws the following error on the last line:

Unhandled Exception:Attempt to index array element beyond array length



Pit-le-rouge(Posted 2012) [#2]
Me again.... (like on the other thread about load sound)
And the same error than you with has OS X Lion !
:-)


Qcat(Posted 2012) [#3]
i have just updated to the latest blitzmax and have this problem with code i am sure was working before.


Pit-le-rouge(Posted 2012) [#4]
toc toc...
is there still someone working on the bugs of BM ???
Since weeks... no news....


Qcat(Posted 2012) [#5]
i have just gone back to BlitzMax 1.43b witch is working fine for my needs. i am sure there will be a fix next update.

it is a bit of an odd one


JoshK(Posted 2012) [#6]
It doesn't even have to be an array in an object. Just a regular 2D array is sufficient to cause the error.