Sign in to follow this  
phear-

Memory leaking

Recommended Posts

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
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

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