Eachin loop problem

BlitzMax Forums/BlitzMax Programming/Eachin loop problem

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