Freeing up memory in C++
I need some advice on memory issues. I noticed that a lot of memory is being used when I create instances of some classes in my code, and since I'm creating these instances within loops, it is consuming a lot of memory and after a few iterations I run out of memory and the program stops. Is there a way to free up the memory allocated for these classes after use?

Regards, 
Freeing up memory in C++
===

I need some advice on memory issues. I noticed that a lot of memory is being used when I create instances of some classes in my code, and since I'm creating these instances within loops, it is consuming a lot of memory and after a few iterations I run out of memory and the program stops. Is there a way to free up the memory allocated for these classes after use?

Regards, 