Dynamic Resizing

BlitzMax Forums/BlitzMax Beginners Area/Dynamic Resizing

Tried to do it a slighty different way, I've got a:
Type indices
	Field indices:Int[]
End Type

In my main type this:
Type obj_data
       Field indexdata:indices[]
end type

Finally, I'm using this in my function..
	obj_ptr.indexdata=New indices[10]
	obj_ptr.indexdata[0].indices=New Int[4]

Which results in a Unhandled Memory error !???