My gauntlet remake "Blood & Plunder - Goblin Head Go Squish Squish" is extremely close to finished and has been playtested quite heavily.
Unfortunately, I have had the same error occur 3 times, and only 3 times in the entire life of the program so far. This error does not give an MAV (Memory Access Violation) but rather on the few times it has occurred it is a standard (?) windows error "illegal operation/encountered a problem" (or similar) and the program closes.
I am confident that I have narrowed it down to an out of bounds offset in a bank I create. On a handful of levels , the ones with an odd number of grid squares, the bank created is 1 byte too small. This means that on the few odd sized levels I am writing a value to a single byte outside of the bounds of the bank once per level during load time.
My question (yes, sorry it took so long to get to it) is this: Would/Could changing a byte outside the bank's size result in an occasional, hard to reproduce, error that does not necessarily occur at the moment the byte is changed but at any, effectively random, point during the program's execution?
Without wanting to sound arrogant, I am confident that the rest of my code is 'bug free' and that this is the cause of the issue but would appreciate some feedback.
Thanks.
Unfortunately, I have had the same error occur 3 times, and only 3 times in the entire life of the program so far. This error does not give an MAV (Memory Access Violation) but rather on the few times it has occurred it is a standard (?) windows error "illegal operation/encountered a problem" (or similar) and the program closes.
I am confident that I have narrowed it down to an out of bounds offset in a bank I create. On a handful of levels , the ones with an odd number of grid squares, the bank created is 1 byte too small. This means that on the few odd sized levels I am writing a value to a single byte outside of the bounds of the bank once per level during load time.
My question (yes, sorry it took so long to get to it) is this: Would/Could changing a byte outside the bank's size result in an occasional, hard to reproduce, error that does not necessarily occur at the moment the byte is changed but at any, effectively random, point during the program's execution?
Without wanting to sound arrogant, I am confident that the rest of my code is 'bug free' and that this is the cause of the issue but would appreciate some feedback.
Thanks.