![]() |
|
Please do not abort (solved) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16) +---- Thread: Please do not abort (solved) (/showthread.php?tid=2301) |
Please do not abort (solved) - zarsoft - 2023-01-28 Help! This program resets the computer. What am I doing wrong? Can the compiler be fixed? Code: 11 DIM start1 AS LONG = 16384RE: Please do not abort - boriel - 2023-02-03 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 - 2023-02-03 --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 - 2023-02-04 (2023-02-03, 04: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 - 2023-02-04 Works fine on that compiler version. Thanks. |