https://bugs.winehq.org/show_bug.cgi?id=53767
--- Comment #10 from Jason Millard jsm174@gmail.com --- So I resolved a few more issues and had to circle back to this as I think the patch might have an issue.
It's almost like a redim on a new veriable will mess up future dims:
Example:
dim A(20) WScript.Echo "A = " & UBound(A)
redim B(40) WScript.Echo "B = " & UBound(B)
redim C(35) WScript.Echo "C = " & UBound(C)
dim D(50) WScript.Echo "D = " & UBound(D)
A = 20 B = 40 C = 35 VBSE_OUT_OF_MEMORY
Example:
redim B(40) WScript.Echo "B = " & UBound(B)
redim C(35) WScript.Echo "C = " & UBound(C)
dim D(50) WScript.Echo "D = " & UBound(D)
Debug: B = 40 Debug: C = 35 Debug: D = 35