First spotted in B4A 12.50, still happening in 12.80.
I've tested this on a few devices with different Android versions and it crashes on all three.
If I call MsgboxAsync or Msgbox2Async after a sleep within a ResumableSub in a class module, the app crashes.
If I have a try...catch block after a sleep within a ResumableSub in a class module, the app crashes.
This can be reproduced in the attached project. Normal tap on the button to reproduce case 1, long tap to reproduce case 2.
In both cases, if there is a breakpoint within the sub, the app does no crash regardless of whether the breakpoint is hit.
Related thread with a bit more explanation here :
I've had a bit of time to go through one of my apps and finally remove all the DoEvents and Msgbox calls. I ended up removing all the code modules and replacing them with classes, and converting lots of subs into resumables, wait for, sleep etc. In a couple of my classes, I am getting this...