I'm going through lazy foo's SDL tutorials using Visual C++ 2010 Express and have noticed that everything in the first basic tutorial works fine when I run the application directly from the .exe, but when I try to click "play" to start debugging, I get the following error:
Unhandled exception at 0x681247d8 in test_game.exe: 0xC0000005: Access violation reading location 0xccccccf8.
I'm guessing this is due to one of two things:
1) The debug environment isn't finding the necessary DLLs
2) The debug environment isn't finding the necessary images to load, so it's trying to dereference a null pointer.
Unfortunately, I know next to nothing about Visual Studio or how it sets up its debug environment and I haven't been able to google a solution to this. Any thoughts?
Thanks in advance, please let me know if I should provide more detail.