Hi
I have an array bug. Sometimes it crash the application when exit (on win8), sometimes I have an error message at line 38, sometimes nothing happens.
I think it could be great to have ALWAYS an error or a message with that kind of error.
Should it be fixed in the v2 ?
Type sType
Name$
x as integer
y as integer
Endtype
global dim test[0] as sType
global Param as integer
Init()
do
Event()
Sync()
loop
// on win8, crash when exit
function Init() '{
dim test[10]
for i =0 to 10
test[i].x = i
test[i].y = i
test[i].name$ = str(i)
next i
EndFunction '}
Function Change() '{
For i = 0 to 50
// should crash or give an error at i = 11
// because test[] has only 10 elements
test[i].x = 10
next i
EndFunction '}
Function Event() '{
if param < 200
Param = param +1
elseif param < 210
param = 211
change()
endif
EndFunction '}
http://www.dracaena-studio.com