Fwd: RE: Memory Leaks

Carlos Colon <[email protected]>
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
Hello, Anthony:
 
Keep in mind that evry time you compile a program, no matter how small it may be, you're adding debugging, compiler, workspace, etc., files into your harddrive, something amounting to about 2 to 6MB for very small amounts of code. Of course, only the compiles ".exe" file contained in the "debug" folder where your ".h" and ".cpp" files are located.
To save harddrive space, and still want to keep programs you've written, you'd have to move all of your ".exe" files into a different location and delete all those other files, if not the entire folder, and you're really going to see the difference, depending on how long you're been writing and compiling programs.
 
Memory leaks only occurs if the programs you write new memory allocation code and the allocated memory is not released upon exiting the program. It can get complicated if you run them continuously on a single seesion of booted windows. That is, all you have to do is: reboot the computer to remanage its RAM, or install a memory manager program, such as turboRAM, to defrag and recover memory after have runned such memory-leak-causing programs. Hope this helps.
 
-coloncm

Mike Watson <[email protected]> wrote:
To: 
From: "Mike Watson" 
Date: Mon, 17 May 2004 18:10:58 -0400
Subject: RE: [cppug] Memory Leaks



v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}
Hi Anthony,

 

You would only fill up your hard drive if your program was writing out files of some type.  Memory leaks would cause your application to crash because it has used up all the available memory (ram).

 

30 GIGS is a lot to lose, what kind of applications are you running? Do they deal with images?   

 

Try this: The first time you run your application in the day, do a search for files with the current time stamp.  See what you program created/modified that day. Focus on files of large size. You may find a clue there.

 

-m

 

 

 

 

 

-----Original Message-----
From: Anthony Marlow [mailto:[email protected]]
Sent: Monday, May 17, 2004 3:41 PM
To: 
Subject: [cppug] Memory Leaks

 

I'm new to programming, and I've been using C++ a lot, mostly doing 
example projects from a book that I bought.  But somehow, since I 
started programming, just a little over a month ago, I've lost about 
30 GB of space from my hard drive, and I can't figure out where it 
has gone.  Is it possible that I've had some kind of memory leak, 
and that has filled up my hard drive?

How can I verify what is taking up so much space on the hard drive?  
And if it is from memory leaks, how do I get rid of it?  I've 
already done the usual disk maintanence stuff, like defrag and scan 
and disk clean-up, but nothing has worked.

I'd really appreciate any help that I can get on this!

Thanks so much,
Marlow





Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/cppug/
  
   To unsubscribe from this group, send an email to:
[email protected]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



		
---------------------------------
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.