I keep getting a huge memory leak with the g++ compiler (v. 4.4.1), as can be seen from the command "top" which shows "used" memory on my 16GB machine running Ubuntu.
I never use the constructors or destructors (new, or delete). I am, however, dealing with a very large input file (6.6GBs).
I'm still quite a beginner with programming in c++, but after much google searching, I do not understand why this is happening?
@Cubbi: I'm running another program that will take a while to finish, but I will look into what the different fields mean, since, I believe, you are implying "Used" is not exactly used.
@darkestfright: I had read about that, but what I was doing was so simple, I just didn't understand how I was getting a "leak."
@kev82: OMG, how I love Linux. I know about all the commands you mentioned, but never thought about putting them together. My perl program blew up, so I thought I would use c++ to split the file. Thanks again kev82!