Hi,
I have an application that does some Monte Carlo simulation. For each run, a 12MB file is loaded into a std::vector<MyData>
. The object which loads and stores the data is referenced by a boost::shared_ptr
which is removed from the stack when the run finishes.
I see the memory usage of the application grow in Windows Task Manager to about 1GB (after 80-90 runs), but it then usually drops down to 50MB (and start growing for the next runs). So I wonder if this is a memory leak or just normal behavior. Should/Could I do anything to explicitly free the memory in the vector or something else?
Thanks for hints,
Philipp