Sign in to follow this  

Question about: HEAP: Free Heap block X modified at Y after it has been freed

This topic is 2634 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Simple question: How do I figure out where Y is? It's a memory address (I'm guessing) and not a line number. I'm using VS2010.

Does VS have a window I don't know about that contains the memory addresses of functions currently in use?

Sorry, I can't post code, it's a couple hundred k spread over dozens of files, plus I'd have to hassle with NDAs and crap if I wanted to share it with anyone.

Also, I'm well aware that the code sucks so if that's the only thing you want to reply with, I've saved you the effort. :)

Share this post


Link to post
Share on other sites
I'm not a memory debugging expert, but you can try to instrument your code with some of the techniques described here. If Y is accessed with a 'dangling' pointer you have good chances of finding the problem. Sometimes you can also guess from what was written, from where it was written. Here the Memory Window is useful.

Share this post


Link to post
Share on other sites

This topic is 2634 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this