10-17-2024, 11:50 AM
(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.