The below code crashes on RPi without any trace (well, see below)
Dim i as integer
Redim kurvStructArray(10) 'OK if each record is 20 bytes. Larger causes crash below.
for i=0 to 3
kurvStructArray(i).total= 100+i 'Crashes in RPi in second loop, i=1
Next i
me.Caption=Str(i)
break
Works as expected in Windows, but crashes in RPi unless I shrink record size to max 20 bytes.
I’m using Win10 Xojo 2021r1.1 and an RPi 4B with Raspbian 10 (buster).
The only trace i get is running strace which after a zillion lines ends with:
*** killed by SIGBUS ***
Bus error
I just filed a bug report “65039 - Bug in Raspberry Pi compiler if size of Structure in array is over 20 bytes”,
and I am holding my breath.
Maybe this also adds to the 43783 which seems to be left in the air 5 (five) years ago.