New Bug found. Just spotted this as its broke lots of my instruments.
AM 3.7 Beta 4. Run this code and click the button a few times in quick succession. It should print immediately to the console after every click of the button. It seems to do the first couple then it gets bogged down waiting for the timer to complete.
If you run this in AM 3.6 you get an instant response from every click of the button which is how its supposed to work.
For some reason the button callback is not being called while the timer is running?
Code: Select all
function timer_func()
timer_stop(timer_id)
timer_id = timer_start(4000, 0, function()
end)
end
button_add(nil, nil, 100, 100, 300, 300, function()
print("button pressed")
timer_func()
end)