• Advertisement
Sign in to follow this  

Memory leaking

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

Advertisement
I just realized I was a little too vague in my question... I'm using Visual Studio 2008 Pro, and im coding in C++. I looked at your link SiCrane for static code analysis and I got CppCheck and I apparently have no errors, but I was wondering if there was anyway to check with VS? or maybe an add-on for it? Thanks for the help so far.

Share this post


Link to post
Share on other sites
Here's an interesting idea: MSVS comes with something called documentation. Specifically an application called MSDN. If you didn't install that with Visual Studio, do so now. Fire that guy up and trying looking up "memory leaks" in the index.

Share this post


Link to post
Share on other sites
I never installed MSDN, but thank you for the help.
http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx

Share this post


Link to post
Share on other sites
Quote:
Original post by phear-
I never installed MSDN, but thank you for the help.
http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx


There is always http://www.codeproject.com/KB/applications/visualleakdetector.aspx its a lib and header file and will only be compiled into your debug executable. It outputs how much memory is leak, a call stack and a hex dump of the leaked memory.

Share this post


Link to post
Share on other sites
As above.

For large projects it may be worth considering writing your own memory manager. You will be able to collect a lot of information of when allocations and deallocations are happening and whats going wrong.

Theres an article here on game dev that goes through it.. cant seem to find it tho.

Share this post


Link to post
Share on other sites
Thank you both for the replies :) Ill look into that link as well as look at making my own memory manager.

Share this post


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

  • Advertisement