Scrolling
I am using arrows keys to scroll a list of items, program was working well, all of the sudden crash, i don't know maybe I pressed many times arrow keys.
PC-BASIC crash log
462 INPUT #1, N$(I),D$(I),QUANTITY(I),COST(I),ROP(I),S$(I),SKU$(I)
==== Traceback ===================================================================================== Traceback (most recent call last): File "C:\pc-basic\pcbasic\basic\values\strings.py", line 192, in _retrieve KeyError: 61953
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\pc-basic\pcbasic\main.py", line 110, in _run_session File "C:\pc-basic\pcbasic\main.py", line 133, in operate_session File "C:\pc-basic\pcbasic\basic\api.py", line 165, in interact File "C:\pc-basic\pcbasic\basic\implementation.py", line 317, in interact File "C:\pc-basic\pcbasic\basic\interpreter.py", line 133, in loop File "C:\pc-basic\pcbasic\basic\interpreter.py", line 123, in parse File "C:\pc-basic\pcbasic\basic\parser\statements.py", line 82, in parse_statement File "C:\pc-basic\pcbasic\basic\implementation.py", line 740, in input File "C:\pc-basic\pcbasic\basic\implementation.py", line 796, in _input_file File "C:\pc-basic\pcbasic\basic\values\values.py", line 118, in wrapped_fn File "C:\pc-basic\pcbasic\basic\values\values.py", line 284, in from_repr File "C:\pc-basic\pcbasic\basic\values\strings.py", line 46, in from_str File "C:\pc-basic\pcbasic\basic\values\strings.py", line 230, in store File "C:\pc-basic\pcbasic\basic\memory\memory.py", line 286, in check_free File "C:\pc-basic\pcbasic\basic\memory\memory.py", line 281, in _collect_garbage File "C:\pc-basic\pcbasic\basic\values\strings.py", line 265, in collect_garbage File "C:\pc-basic\pcbasic\basic\values\strings.py", line 194, in _retrieve KeyError: 'Dereferencing detached string at f201 (61953)'
==== Version ======================================================================================= PC-BASIC 2.0.7 [v2.0.7 bb50fbfd 2023-04-02 20:06:09.624455] (C) Copyright 2013--2023 Rob Hagemans.
==== Platform ======================================================================================
PLATFORM os: Windows-10-10.0.26100 python: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] 32bit WindowsPE True
MODULES pyaudio: 0.2.11 serial: 3.4 parallel: --
LIBRARIES sdl2: C:\Program Files (x86)\PC-BASIC 2.0\lib\sdl2dll\dll\SDL2.dll sdl2_gfx: C:\Program Files (x86)\PC-BASIC 2.0\lib\sdl2dll\dll\SDL2_gfx.dll
EXTERNAL TOOLS notepad: C:\WINDOWS\system32\notepad.EXE lpr: -- paps: -- beep: -- pbcopy: -- pbpaste: --
==== Options ======================================================================================= []
Please share the program you were running, without it there is nothing that can be done
Hello Rob , How are you?I am sending here two programs, one when it crashed, I added several things to the other in case you need to test the program there, well as I told you before the one crashed was working perfectly as well but all of a sudden it crashed when scrolling.
Thank you y exitos
Felipe
On Tue, Apr 1, 2025 at 2:34 AM Rob Hagemans @.***> wrote:
Please share the program you were running, without it there is nothing that can be done
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISZGPGNAWFKVAPL7LL2XIXRHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRYGMYTONJZHE . You are receiving this because you authored the thread.Message ID: @.***> [image: robhagemans]robhagemans left a comment (robhagemans/pcbasic#249) https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599
Please share the program you were running, without it there is nothing that can be done
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISZGPGNAWFKVAPL7LL2XIXRHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRYGMYTONJZHE . You are receiving this because you authored the thread.Message ID: @.***>
Hello Rob: Can I ask you something, I am using windows 11, I need to compile a pc basic program, I downloaded some free compiler from net, i installed but no working, could you recommend me wich compile program may I use and where can I download it.
Thank you very much Felipe
On Wed, Apr 2, 2025, 1:40 AM Tristan Z @.***> wrote:
Hello Rob , How are you?I am sending here two programs, one when it crashed, I added several things to the other in case you need to test the program there, well as I told you before the one crashed was working perfectly as well but all of a sudden it crashed when scrolling.
Thank you y exitos
Felipe
On Tue, Apr 1, 2025 at 2:34 AM Rob Hagemans @.***> wrote:
Please share the program you were running, without it there is nothing that can be done
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISZGPGNAWFKVAPL7LL2XIXRHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRYGMYTONJZHE . You are receiving this because you authored the thread.Message ID: @.***> [image: robhagemans]robhagemans left a comment (robhagemans/pcbasic#249) https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599
Please share the program you were running, without it there is nothing that can be done
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2768317599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISZGPGNAWFKVAPL7LL2XIXRHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRYGMYTONJZHE . You are receiving this because you authored the thread.Message ID: @.***>
FreeBASIC started as a compiler for QuickBASIC, the successor of GW-BASIC. QuickBASIC can run most GW-BASIC programs as is. As the FreeBASIC dialect has evolved since then, you'll have to use the -lang qb switch when compiling QuickBASIC or GW-BASIC source code.
Awesome, thanks for the info!
On Sun, Apr 20, 2025 at 8:18 PM Marc Rintsch @.***> wrote:
FreeBASIC https://freebasic.net/ started as a compiler for QuickBASIC, the successor of GW-BASIC. QuickBASIC can run most GW-BASIC programs as is. As the FreeBASIC dialect has evolved since then, you'll have to use the -lang qb switch when compiling QuickBASIC or GW-BASIC source code.
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISCIQKQIJ5PZTKJKB322Q2OHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJXGQYDMNZQGQ . You are receiving this because you authored the thread.Message ID: @.***> Marrin left a comment (robhagemans/pcbasic#249) https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704
FreeBASIC https://freebasic.net/ started as a compiler for QuickBASIC, the successor of GW-BASIC. QuickBASIC can run most GW-BASIC programs as is. As the FreeBASIC dialect has evolved since then, you'll have to use the -lang qb switch when compiling QuickBASIC or GW-BASIC source code.
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISCIQKQIJ5PZTKJKB322Q2OHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJXGQYDMNZQGQ . You are receiving this because you authored the thread.Message ID: @.***>
Hello, Thank you very much for your help, I was able to compile my 3000 lines script, some minor problems with input and on error but I fixed it, it compiled perfect like Quick basic because I wrote script in Msx Basic, it's running great only when compiled screen is deferent maybe because pc basic interface is diferent from windows , I don't know.
Thanks Rob & Marc R
On Mon, Apr 21, 2025, 1:22 AM Tristan Z @.***> wrote:
Awesome, thanks for the info!
On Sun, Apr 20, 2025 at 8:18 PM Marc Rintsch @.***> wrote:
FreeBASIC https://freebasic.net/ started as a compiler for QuickBASIC, the successor of GW-BASIC. QuickBASIC can run most GW-BASIC programs as is. As the FreeBASIC dialect has evolved since then, you'll have to use the -lang qb switch when compiling QuickBASIC or GW-BASIC source code.
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISCIQKQIJ5PZTKJKB322Q2OHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJXGQYDMNZQGQ . You are receiving this because you authored the thread.Message ID: @.***> Marrin left a comment (robhagemans/pcbasic#249) https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704
FreeBASIC https://freebasic.net/ started as a compiler for QuickBASIC, the successor of GW-BASIC. QuickBASIC can run most GW-BASIC programs as is. As the FreeBASIC dialect has evolved since then, you'll have to use the -lang qb switch when compiling QuickBASIC or GW-BASIC source code.
— Reply to this email directly, view it on GitHub https://github.com/robhagemans/pcbasic/issues/249#issuecomment-2817406704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3DCISCIQKQIJ5PZTKJKB322Q2OHAVCNFSM6AAAAAB2FXMK2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJXGQYDMNZQGQ . You are receiving this because you authored the thread.Message ID: @.***>