Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Huge array of variable length strings
#6
(10-17-2024, 11:42 AM)luke Wrote: By all rights this should work fine as long as you have a reasonable amount of memory (which, as you say, you do). I can consistent reproduce the crash after 32 loop iterations, and at a glance in the debugger this looks like a QB64 bug.

     The most likely cause of such a bug is some one using a signed 32 bit integer in the code when they should be using an unsigned 32 bit integer or a 64 bit integer.   The clue is it happens at 2gb (which is the largest positive value of a signed 32 bit integer).    

      I ran into a bug in the _SND sub system that hits on the same limitation.   _SNDSETPOS will fail on Wave files > 2gb's in size.
Reply


Messages In This Thread
RE: Huge array of variable length strings - by ahenry3068 - 10-17-2024, 11:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings - Numbers Kernelpanic 0 114 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Array out of passing arrays... Pete 2 408 09-22-2025, 08:53 PM
Last Post: ahenry3068
  Variable length type declarations dano 5 690 08-06-2025, 09:53 PM
Last Post: dano
  Determining if variable or static string is passed to a Sub dano 9 1,227 06-20-2025, 06:31 PM
Last Post: CookieOscar
  Most efficient way to build a big variable length string? mdijkens 9 1,895 01-17-2025, 11:36 PM
Last Post: ahenry3068

Forum Jump:


Users browsing this thread: