Android Question java.lang.IndexOutofBoundsException: index xy

Phayao

Active Member
Licensed User
Longtime User
I encounter often a strange effect: In Debug Rapid compilation mode, I sometimes get this error when calling for example a click event of a button. In Debug Legacy mode, the error does not come up.
Is this because there is something like a stack of functions called that is not cleared ? How to "refresh" this ?
Example: I have a button to activate the camera:
btn_startcam
...
camera1.startpreview
end sub

In the picturetaken sub, the camera1 preview is stopped.

Any ideas about this error message ? (not only in this example but in other programs also with other sub calls .... causing the application to stop immediately)

Thank you, Chris
 

Phayao

Active Member
Licensed User
Longtime User
Please post the full error message when you encounter this error again?

Which version of B4A are you using?

I changed from 3.8 version to 4
According to Murphy's Law, I could not reproduce the error right away, if it comes again, I will post it. Sorry for bothering you with this.
Thanks for your help,

Chris
 
Upvote 0
Top