Hello,
I have this kind of function:
In DoStuff3b, when I fast-compulsively-hit Button1 (testing purposes), I get an exception telated to that sub being fired more than once before it is finished for the previous execution (some list, that's cleared at the end, having more items than it should; also, debugging logs seems to confirm that)
It seems strange to me since DisableButtons goes like this:
I appreciate directions about where could I look for issues...
Thank you very much!
I have this kind of function:
B4X:
Sub Button1_Click
DisableButtons
DoStuff1
DoStuff2
DoStuff3
DoStuff3a
DoStuff3b <--------- ISSUE HERE
DoStuff3c
EnableButtons
End Sub
In DoStuff3b, when I fast-compulsively-hit Button1 (testing purposes), I get an exception telated to that sub being fired more than once before it is finished for the previous execution (some list, that's cleared at the end, having more items than it should; also, debugging logs seems to confirm that)
It seems strange to me since DisableButtons goes like this:
B4X:
Button1.Enabled = False
Button1.Visible = False 'added to try to avoid the previous exception; It didn't worked
Sleep(0) 'same comment as the line above
I appreciate directions about where could I look for issues...
Thank you very much!