Bug? Works only in DEBUG-Mode

dekoforce

New Member
Licensed User
Hi!

B4X:
Dim prg() As String = Array("-","\","|","/")

That piece of code works only in DEBUG-Mode, in RELEASEMode i get this error:

java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]

I have to use the following code to get it work in RELEASE Mode:

B4X:
Dim prg(4) As String   
prg(0) = "-"
prg(1) = "\"
prg(2) = "|"
prg(3) = "/"

Is this a known behavior?

DeKo
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…