I'm attempting to recreate "Snake" and I'm having a strange issue. I'm getting an access violation error, specifically "Access violation reading location 0xfeef001a." every single time, when I exit the program. In debug mode, it says the error happens on "return 0;" at the end of main. I added a cout statement right before I return 0 to show that returning 0 was what was giving me the error, not something before it. What is this!?
Access Violation Error on exit, C++