Jump to content
  • Advertisement
Sign in to follow this  
GCoda

Buffer overrun or what?

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

Hello. I am quite puzzled sometimes when using a large game engine which I have modded my self and after writing a new function it starts to behave oddly. And I cannot figure out the problem debugging through the new function calls as it appears to function correctly. So that leaves quite glueless why some of the strings in the game/engine become corrupted. Usually this could mean buffer over-run in somewhere. But how do you find out in situation like this where the first mistake occurs in the code not knowing anything about the type of the bug? Thanks any debugging tips are welcome. :) I'm using visual studio express 2005.

Share this post


Link to post
Share on other sites
Advertisement
More likely a dangling pointer. Look at the "corruption" and see what it is in bytes. Is it a float? Zero? The nature of the corruption can give you a clue.

Share this post


Link to post
Share on other sites
Quote:
Original post by Cowboy Coder
More likely a dangling pointer. Look at the "corruption" and see what it is in bytes. Is it a float? Zero? The nature of the corruption can give you a clue.


Dangling pointer huh, interesting, haven't heard that one before. Well the corruption appears in the output of the console's text so I can't think of where to start looking.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!