Please do not abort (solved) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: Please do not abort (solved) (/showthread.php?tid=2301) |
Please do not abort (solved) - zarsoft - 01-28-2023 Help! This program resets the computer. What am I doing wrong? Can the compiler be fixed? Code: 11 DIM start1 AS LONG = 16384 RE: Please do not abort - boriel - 02-03-2023 It seems you might have a bug writing beyond the array boundaries. Can you compile with --debug-array to check if this is the case? If the program stops with the error "Subscript out of range", then bug should be in line 540. Try this and tell me. RE: Please do not abort - zarsoft - 02-03-2023 --debug-array will not change anything. I changed this line. "18 DIM p(200) AS LONG" But still resets the emulator. The problem disappears when removing some unused lines - so, I think it's a compiler bug. RE: Please do not abort - boriel - 02-04-2023 (02-03-2023, 03:38 PM)zarsoft Wrote: --debug-array will not change anything. I have tested your first example and it runs ok in my emulator (Fuse). See the screenshot attached: What compiler version do you have? Try this one: http://www.boriel.com/files/zxb/zxbasic-1.16.5-beta10.tar.gz http://www.boriel.com/files/zxb/zxbasic-1.16.5-beta10.zip http://www.boriel.com/files/zxb/zxbasic-1.16.5-beta10-win32.zip http://www.boriel.com/files/zxb/zxbasic-1.16.5-beta10-linux64.tar.gz http://www.boriel.com/files/zxb/zxbasic-1.16.5-beta10-macos.tar.gz RE: Please do not abort - zarsoft - 02-04-2023 Works fine on that compiler version. Thanks. |