Re: [GD-Windows] memory leak?
Brought to you by:
vexxed72
From: Ivan-Assen I. <as...@ha...> - 2002-11-07 09:47:47
|
> I had programed an object class which has std::vector as its member. As the objects > are created and deleted in runtime, the memory of the process becomes bigger. The > following is a simplified version, in which memory growing seems no harm since the memory > is released to system once the process exits. > But for real program, memory growing in runtime with objects creating and destroying is > not acceptable. In most STL implementations, vectors only grow in capacity and never shrink. This is perfectly OK for 90% of the cases, and can be easily circumvented if you are aware of it in the other 10%. |