   Visual Studio 2008 Debugging help
  Hello,I'm having trouble finding the cause of an unhandled exception. This is the message:Unhandled exception at 0x5e506ada in GameV1.exe: 0xC0000005: Access violation reading location 0x01f6e000.The problem of this problem is that it doesn't happen always. I can run it for a couple of times and it works, but sometimes this error pops up. I'd like to know how to check which variable has the address specified in the error message. I've looked through the 'autos' window but I'm unable to find any of the addresses from the error. The code that causes this error updates a directX 10 constant buffer with new data (I check all return values and everything is fine).I'm no expert in finding errors like this so if anyone knows of any tutorials about I'd appreciate some links.   
  The error occurs inside your own exe file. Surely just running a standard debugger, like the VS 2008 one, would land you on the line of code where the program crashes? Is that not enough information? Can't you check the addresses of all the variables referenced on that line?   ;  I have checked the addresses on that line but none matches any of those specified in the error message.   ;  The thing is, you probably don't have a variable with that memory address. If you did, then the memory would be good so you wouldn't see the access violation. Without seeing code, it's hard to say what the problem is, but what you probably want to check for is a variable that contains the address or something close to it rather than a variable that has that address.   ;  How much code are we talking about here? I might be willing to give it a shot.   ;  I've ran the application more than 50 times today and I don't get the error anymore... I'll make sure that I release all directX interfaces.   