Debugging oddity
Chris (121) 472 posts |
A slightly odd thing: I’m working on a fairly complex bit of BASIC code, and reached a point where a certain action froze the machine into an endless hourglass loop, escapable with Alt-Break. I added a Now I’ll have to look through the code more carefully to see where things are breaking down, but does this surprising (to me) behaviour offer any clues as to what the problem might be? Ie, does printing a character reset anything that I might have corrupted somehow? |
Rick Murray (539) 13850 posts |
Now if this was a C program, I’d say you were overshooting an array and trashing something important (local arrays are on the stack, so mucking up can have obviously naff effects). So… are you doing anything freaky with memory access? this%?that% sort of stuff? Maybe something similar? |
Chris (121) 472 posts |
It’s Maestro, so the entire thing is something freaky with memory access ;-) Yeah, that’s what I assume is going on. There’s an awful lot of indirection operators – setting and unsetting bits within blocks of bytes – so I assume I’m running off the end of some allocated space somewhere. |
Martin Avison (27) 1494 posts |
Have you looked at |
Chris (121) 472 posts |
No – thanks. I’ll take a look at that and see if it can help out. |