Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BUG in 3.6.0 ?
#1
I have an older program that used to run fine but now exits unexpectedly in 3.6.0 without any message.

Below a snippet of what I pinned down the error to: (r$ = Mid$(arr$(i&), 80, 20) in processArr&)
Code: (Select All)
Const RECS = 10000000
Dim Shared arr$(RECS)

Print fillArr
Print processArr

Function fillArr&
    For i& = 0 To RECS
        arr$(i&) = Space$(150)
    Next i&
    fillArr& = i&
End Function

Function processArr&
    For i& = 0 To RECS
        r$ = Mid$(arr$(i&), 80, 20)
    Next i&
    processArr& = i&
End Function

I expect it to be some kind of memory error.

(and Yes I know this is an array of 1.5GB, but it used to work up to 2GB)
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
BUG in 3.6.0 ? - by mdijkens - 04-07-2023, 09:41 AM
RE: BUG in 3.6.0 ? - by Jack - 04-07-2023, 12:29 PM
RE: BUG in 3.6.0 ? - by mdijkens - 04-07-2023, 01:56 PM
RE: BUG in 3.6.0 ? - by mnrvovrfc - 04-07-2023, 01:00 PM
RE: BUG in 3.6.0 ? - by mdijkens - 04-07-2023, 02:01 PM
RE: BUG in 3.6.0 ? - by mnrvovrfc - 04-07-2023, 01:05 PM
RE: BUG in 3.6.0 ? - by bplus - 04-07-2023, 02:08 PM
RE: BUG in 3.6.0 ? - by mdijkens - 04-07-2023, 02:17 PM
RE: BUG in 3.6.0 ? - by DSMan195276 - 04-07-2023, 03:05 PM
RE: BUG in 3.6.0 ? - by mdijkens - 04-07-2023, 04:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,251 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 846 05-09-2025, 02:22 AM
Last Post: Circlotron
  I have fallen in a bug or weird behaviour TempodiBasic 2 674 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  3.13.1 bug report - keyboard characters swapped Circlotron 3 1,001 06-03-2024, 05:16 AM
Last Post: Circlotron
  I need input on a possible bug in v3.5.0 TerryRitchie 50 8,432 05-22-2024, 07:03 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)