I used Doevent in the past to make an interface refresh. I replaced with Sleep (0) and i had no problem
I thought that too.
I've spent a lot of time trying to find the error, then I just swapped Sleep(0) with DoEvents and the error was gone.
I think that the programmer with the DoEvents still has a control over the program sequence, but with Sleep(0) but no more, and that is a big error source.
Therefore here again my request:
DoEvents should not be marked as deprecated, As long as a comparable function does not exist.
I just do not want the same error to happen to other B4x users as well.
But, we said this is just my wish,
and perhaps also the wish of a few thousands B4x users.