Bug? B4A v5.5 beta #1 - CallSubDelayed2 argument

Pendrush

Well-Known Member
Licensed User
Longtime User
With this code
B4X:
CallSubDelayed2(Me, "test", -1)

Sub test(number As Int) '<- error on this line
log (number)
End Sub

I get this error, but not every time, it happens in some random cases
java.lang.IllegalArgumentException: argument 1 should have type int, got java.lang.Double

In B4A v5.2 argument is always integer in this case.
in B4A v5.5 beta #1, argument is sometimes integer, sometimes double
 

Pendrush

Well-Known Member
Licensed User
Longtime User
PS
I case above, (on error) passed argument is -1.0 instead -1
com.e.rad.test.rad.main:_test, [-1.0]
 

Pendrush

Well-Known Member
Licensed User
Longtime User
PS 2
hmmm, this is (look like) happening only in rapid debug, still testing.
 
Top