M
Matthias Kaeppler
Hi,
I'm holding a vector of boost::filesystem:
athS and a vector of
pointers to them. I use the reserve member function on both to reserve
space for 500 files. That means, for the 501th file added, the vector
will grow to hold 1000 files right?
Well, as soon as this happens I am getting a segmentation fault. I'm
sure this is the reason, because the program crashed when I entered
/usr/bin which holds about 1700 files, and if I change the initial
capacity to 2000 instead, the program won't crash.
I'm totally lost, any idea what could cause the crash?
I'm holding a vector of boost::filesystem:
pointers to them. I use the reserve member function on both to reserve
space for 500 files. That means, for the 501th file added, the vector
will grow to hold 1000 files right?
Well, as soon as this happens I am getting a segmentation fault. I'm
sure this is the reason, because the program crashed when I entered
/usr/bin which holds about 1700 files, and if I change the initial
capacity to 2000 instead, the program won't crash.
I'm totally lost, any idea what could cause the crash?