The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: G`HOST on November 14, 2005, 06:50:53 PM

Title: System Resources
Post by: G`HOST on November 14, 2005, 06:50:53 PM
Hi . there is some problem i am facing. may be it has something to do with my style of coding.anyway...
Something is eating up my system`s resources (The RAM).I dont know what or why.may be because of an app which uses "timers" though i kill them before leaving the program.anyway my point here is
Can u ppl point out precautions one should take while coding in masm.Or may be a link which addresses same problems.Plz Help.
Title: Re: System Resources
Post by: QvasiModo on November 14, 2005, 09:40:56 PM
I don't think there's much to say but "remember to close all handles you opened"  :wink

You can use a program like MemProof to programatically check for resource leaks. That might help identify the piece of your code where resources are being used but not freed.
Title: Re: System Resources
Post by: G`HOST on November 15, 2005, 03:23:43 AM
Here i Found something on the topic. Looks preety neat

http://www.codeproject.com/debug/cdbntsd.asp?df=100&forumid=36038&exp=0&select=1113936

Though its about CDB, NTSD and WinDbg but explains a lot about Debugging and Resource leaks (as u talked about..QvasiModo)
Title: Re: System Resources
Post by: Tedd on November 15, 2005, 12:43:25 PM
Using the GDI can be a great source of memory leaks :bdg