Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Threading problem solved?

Threading problem solved?

Mike Bossy
Mike Bossy
I am a duck · · 1 min read
489 0
Thanks to the wonderful world of unit tests I was able to refactor my resource manager class into two separate managers for textures and audio in about 30 minutes. Running my unit tests allowed me to know I hadn't made any ugly cut and paste errors that messed things up. Now all that's left is to wait to see if the random crash occurs again. I do have a way to have my engine run in single threaded mode which I did and never saw the crash so hopefully this is the fix I need. Unfortunately the crash happens so rarely that I won't be sure for a while.

On a semi-related note I found an ugly buffer overrun in my game code today that may be the real cause. I'm totally overwriting past the end of an array due to a stupid coding error. Once that happens all bets are off and any crash could be happening because of it. Hopefully one of these fixes sticks.

Discussion

Loading comments...