I have a program that compiles without difficulty on the May 22, 2021 Dev Build but the exact same code fails to compile on the June 7 release.
Error received:
Compiler error (check for syntax errors) (Subscript out of range:9-12075) on line 31 (click here or Ctrl+Shift+G to jump there)
Contents of line 31:
$ExeIcon:'iso.ico'
Note that if I comment out line 31, I will continue to get the same error but without a reference to any line number.
The program is 10,000+ lines so I won't post the whole thing here, but here are the first 45 lines of code so that you can see that line 31 in context:
' WIM (Windows Image Manager) Tools
' (c) 2021 by Hannes Sehestedt
' Release notes can be found at the very end of the program
' This program is intended to be run on Windows 10 x64 and should be compiled with the 64-bit version of QB64.
' The program is currently tested and compiled on QB64 version 1.5, May 22, 2021 Development Build.
' IMPORTANT: It is very important to use the March 17, 2021 Dev Build or newer as this fixes a bug with the
' CLEAR command.
' This program needs to be run elevated. Check to see if the program is running elevated, if not,
' restart in elevated mode and terminate current non-elevated program.
If (_ShellHide(">nul 2>&1 " + Chr$(34) + "%SYSTEMROOT%\system32\cacls.exe" + Chr$(34) + " " + Chr$(34) + "%SYSTEMROOT%\system32\config\system" + Chr$(34))) <> 0 Then
' If we reach this point then the program was run elevated.
' ********************************************************
' ** Make sure to keep the "$VersionInfo" updated below **
' ********************************************************
' Perform some initial setup for the program
BeginProgram:
Print "Initializing program. Standby..."
Note that as a test, I removed lines 30 through 39 from the program just as a test to see if any of those lines near line 31 are the cause of the error but the compiler still fails.
Other info:
Help / About Info in QB64:
QB64 Version 1.51
Development Build
From git 0a48450
I'm running the 64-bit version of QB64 on Windows 10 21H1.
Some of the main system specs on which testing was performed:
ASUS Prime Z590-A Motherboard
Intel Core i7-11700K CPU (11th Gen)
128GB RAM
1 x 1TB NVMe SSD
1 x 2TB NVMe SSD
2 x 8TB WD NAS HDs
If you need any other info, please do let me know.
- Hannes