Quote: "Guess there could be some issue with inc/dec on typed variables or arrays."
There doesn't appear to be an issue...
sync on : sync rate 10
type test_data
x as float
y as integer
endtype
dim Test(1) as test_data
global X as float
global Y as integer
global d as boolean
while not escapekey()
cls
text 10, 10, "Test(1).x : "+str$(Test(1).x)
text 10, 30, "Test(1).y : "+str$(Test(1).y)
text 10, 50, "X : "+str$(X)
text 10, 70, "Y : "+str$(Y)
if Test(1).x > 100000 and d = 0 then d = 1
if Test(1).x < 0 and d = 1 then d = 0
if d = 0
inc Test(1).x, 1000
inc Test(1).y, 1000
inc X, 1000
inc Y, 1000
else
dec Test(1).x, 1000
dec Test(1).y, 1000
dec X, 1000
dec Y, 1000
endif
sync
endwhile
This runs just fine. It probably has more to do with the size of my app (just over 12,500 lines) and something in those commands caused the stack to have an issue.