I've been having trouble with a program that sometimes optimised compiles and some times doesn't
When it fails it compiles the Array with the wrong rank.
Whether this occurs or not is highly position dependant in the code. Remove one of those blank Subs and it will compile OK. I had various dims of a() around the code but this is as small as I can get it and still fail.
EDIT:- Damn! typoed the title yet again but Erel has quietly fixed it
B4X:
Sub Globals
Dim a(0)
End Sub
Sub App_Start
End Sub
Sub AlSort
a() = Array ( "a", "x", "G", "c", "X", "A", "g", "C", "u", "U" )
End Sub
Sub AlToArray
End Sub
Sub Rank
Dim a(3,4,5)
End Sub
Sub Reverse
End Sub
Sub Sort
End Sub
Sub SortKeysAndItems
End Sub
B4X:
var__main_a = new String[,,] {(@"a"),(@"x"),(@"G"),(@"c"),(@"X"),(@"A"),(@"g"),(@"C"),(@"u"),(@"U")};
EDIT:- Damn! typoed the title yet again but Erel has quietly fixed it
Last edited: