   C++  Memory debugging help needed
  I have a nasty release-only, intermittent bug which I believe is a memory overwrite problem.  Can anyone recommend any good software packages that can help with debugging memory problems in my app?  Things that integrate with Visual Studio are a plus, and free is also a plus.Many thanks!-John   
  Hi, i used this some time ago, hope it help://Dump memory leak info_CrtDumpMemoryLeaks(); Put it at the very end of you're program, just before the main return.Edit:You could also try this , i just found that reading another thread.[Edited by - Vortez on May 13, 2009 9:10:16 PM];  Thanks! I think my problem might not be a leak, but actually overwriting memory, going beyond array bounds or something like that.. I think there was an app called Bounds Checker that helped with that, but it doesnt look like it's been updated in years?   ;Quote:Original post by johnnykThanks! I think my problem might not be a leak, but actually overwriting memory, going beyond array bounds or something like that.. I think there was an app called Bounds Checker that helped with that, but it doesnt look like it's been updated in years?I've used Memory Validator in the past to track down hard to find memory leaks. You can evaluate it, and a single user license is very cheap for what you get in my opinion. (I realize it sounds like I actually sell these myself)   ;  Did you set the /GS flag in release mode? It might not be able to track down every dirty, boundary error but it helped me in the past when I had such problems. You should get a message box when exiting a function that wrote over boundaries.   