reflection on linux
Archives Forums/BlitzMax Bug Reports/reflection on linux
| ||
| on windows when you create an array of strings with reflection they are all set to "" but on linux they seem strange e.g.
Strict
Type obby
Field arr$[11]
EndType
Local objType1:TTypeId = TTypeId.ForName("String[]")
Local objType2:TTypeId = TTypeId.ForName("obby")
Local obj1:obby=obby(objType2.NewObject())
Local obj2:Object= objType1.NewArray(11)
Local list:TList=objtype2.enumfields()
DebugLog "list length "+list.count()
For Local i:TField=EachIn list
i.Set(obj1, obj2)
Next
DebugLog "about to print "
DebugLog obj1.arr[0].length
DebugLog obj1.arr[0]
DebugLog ":hello"
in windows it should print zero length and not crash on linux it prints a long number and crashes when you try to access the blank string does linux use malloc instead of calloc? |