Maybe the description in the title is not entirely accurate to all details but here is an example to cause the crash.
Set breakpoint on first line of crash() (the for statement). Run it with debugger. Step forward a few lines. Type "p.inner" in the debugger variable list window. Stop the debugger run session. The "p.inner" should still be in the debugger variable window. Run debugger again with same old breakpoint and variable set. Player should crash now..
Tried on OSX, latest AppGameKit version..
crash()
type MainType
anicevalue as integer
inners as InnerType[10]
endtype
type InnerType
inner as integer
endtype
global mainers as MainType
function crash()
for i = 0 to mainers.inners.length
p as InnerType
p = mainers.inners[i]
print("hello "+str(p.inner))
next i
endfunction