In one of my classes I have a JobDone sub which I just recently expanded to 14 case selects for handling http callbacks. As soon as I added the other case statements after successful compile runtime was executing code which could not have been called. After scratching my head for an hour, I decided to comment out the new case statement and everything returned to normal. In order to support the new callback jobs, I figured it was a problem with the java code generation and select case statement, so I changed all my select cases in that class to if else if and the problem went away. I was able to reproduce the error on several android versions 2.34 and 4.04.
b4a version is 222 with the latest http 1.22 lib correcting the bug I found, not sure if its related.
Also not sure if the case select limit is actually 10 or lower/higher but its around there, don't have enough time to continue testing it. if else if works as expected
The class handling the http callback was instantiated by a service, if that helps
Erel please confirm
thanks
Rad
b4a version is 222 with the latest http 1.22 lib correcting the bug I found, not sure if its related.
Also not sure if the case select limit is actually 10 or lower/higher but its around there, don't have enough time to continue testing it. if else if works as expected
The class handling the http callback was instantiated by a service, if that helps
Erel please confirm
thanks
Rad