Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dealing with "Out of Memory" errors
Hi everyone,

I found the bug, which was -- as RandomiserUser guessed -- in my array bounds. Specifically I have  a teletype-style print routine, which looks like:
sub teletype(p$ as string)
    dim k as uinteger


    for k=0 to len(p$)-1
        beep 0.0002,-10
    next k


end sub

Sadly, I didn't spot that this can't cope with an empty string. I think, as k is a uinteger, what I get is a loop from 0 to 65,535 with an empty string, which is entertaining to watch print.

Thanks, Georgeo.

Messages In This Thread
Dealing with "Out of Memory" errors - by georgeo - 03-08-2021, 01:09 PM
RE: Dealing with "Out of Memory" errors - by georgeo - 03-10-2021, 09:19 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)