Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Sand_Hawk

HEAP: Free Heap block 314668 modified at 314808 after it was freed

This topic is 5682 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

During runtime I get this error on my debug screen: HEAP: Free Heap block 314668 modified at 314808 after it was freed. It doens''t crash my program, however, it seems like it isn''t very good. I traced that the error occurs when I do a delete [] ccClientData. I am using threads and I am making sure all the threads are ended. The CClient class doesn''t have ANY pointers wich need to be deleted, just normal variables. What does this error to be caused? Sand Hawk ---------------- -Earth is 98% full. Please delete anybody you can.
My Site

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
seems like you''re freeing memory twice.

Share this post


Link to post
Share on other sites
The heap is used for pointer right? So in this case I am double deleting a pointer. Let the hunting begin...

Sand Hawk

----------------
-Earth is 98% full. Please delete anybody you can.


My Site

Share this post


Link to post
Share on other sites
To me, it seems like you''re modifying already freed memory. Double freeing results in a different message, I think.

Share this post


Link to post
Share on other sites
I found the error. When I created the memory, I ussed the wrong variable, creating 1 place too short. During runtime, I was accessing this memory though. I fixed up the code and the problem is solved now. (Thanks to some help from Pouya)

Sand Hawk

----------------
-Earth is 98% full. Please delete anybody you can.


My Site

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!