Got the same error as in the other thread and after debugging found the problem. Here's my (shortened) code fragment:
qty = 20
dim decor[qty] as decor_structure
n = 100
decor[n].letter = "?"
decor[n].img_number = 123
I get no error when I fill this not-existing array, but I do get an error (not always) when I try to access decor[100].img_number.
In fact the error came when I removed the space before 27 from this instruction:
line 547: if GetRawKeyState ( 27 ) = JA then exit
After removing the space I got the 'out of bounds' for line 433, which in fact was a // remark line.
So, AppGameKit got totally confused.