Boost logo

Boost Users :

From: borech_at_[hidden]
Date: 2006-04-23 08:58:06


Hello,
I've been in fight with memory leaks in my application for some days. And
now I found that most memory is losing while using adjacency_list<> (boost
1.33.1 + VC++6.0). Basically we've lost about 100Kb after each graph life
cycle (created - changed - removing). Moreover, I guess, I found the similar
problem on the very simple test:

#include "..\boost_1_33_1\boost\graph\adjacency_list.hpp"
using namespace boost;
typedef adjacency_list<> Graph;
void main()
{
int num_vertex = 10000;
Graph* graph = new Graph();
for(int j=0; j<num_vertex; ++j)
{
 add_vertex(graph);
}
delete graph;
}

Here I've lost some memory too (about 20 Kb). Maybe I'm doing something
wrong?

Thanks


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net