Eachin loop problem

BlitzMax Forums/BlitzMax Programming/Eachin loop problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Having the following code snipet:

Print "Entering"
imgPart=New TPixmap[4]
For Local i:TPixmap=EachIn imgPart
imgPart[index] = PixmapWindow(origImage,(x*partWidth-partWidth ) ,(y*partHeight-partHeight ),partWidth,partHeight)
'Print index+" - "+x+" - "+y+ " - "+(x*partWidth-partWidth )+" - "+(y*partHeight-partHeight )+" -- "+(index Mod 2)
If (x Mod (Int(Sqr(pieces)))) =0
y=y+1
x=1
Else
x=x+1
EndIf
Print index
index=index+1
Next
Print "Leaving"

the for loop is never entered. something that was working in MAX 1.12 Is there any difference in the new 1.14 with null objects?

Thank you