Sign in to follow this  
wforl

memory leak questions

Recommended Posts

Can anybody suggest an application which i can use much like task manager, but gives the ram readings more accuratly, Im looking to view the byte usage of my game, as i have a memory leak somewhere, and would like to view to a scale of bytes rather than kbytes. thanks

Share this post


Link to post
Share on other sites
Most compilers come with some sort of functionality to detect memory leaks as part of their runtime library. For example, MSVC has functions in the crtdbg.h header that can help with memory leaks like _CrtDumpMemoryLeaks() and _CrtSetDbgFlag() the latter of which is especially useful with the argument _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF.

Share this post


Link to post
Share on other sites
Such a thing isn't possible, for the reasons Antheus describes.
Getting a more accurate read would be pointless anyway, as it wont tell you where the leak is.

Note that as a programmer, you should use sysinternal's Process Explorer anyway. It's a replacement for Task Manager which I think no Windows developer should be without.

Share this post


Link to post
Share on other sites
Quote:
Original post by iMalc
Note that as a programmer, you should use sysinternal's Process Explorer anyway. It's a replacement for Task Manager which I think no Windows developer should be without.

QFT. Its "Find Handle or DLL" feature has saved me tons of time hunting down programs that still have my files locked after I've closed them (usually a runaway devenv process, sigh). However I hear Bioshock won't run after you use Process Explorer because its copy protection doesn't like it, but I've never tested it that out.

Share this post


Link to post
Share on other sites
Quote:
Original post by Zipster
Quote:
Original post by iMalc
Note that as a programmer, you should use sysinternal's Process Explorer anyway. It's a replacement for Task Manager which I think no Windows developer should be without.

QFT. Its "Find Handle or DLL" feature has saved me tons of time hunting down programs that still have my files locked after I've closed them (usually a runaway devenv process, sigh). However I hear Bioshock won't run after you use Process Explorer because its copy protection doesn't like it, but I've never tested it that out.

Same with C&C3. It's annoying.

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