On Monday 18 January 2010 17:18:47 Jean-Marc Lasgouttes wrote:
> Everytime compl_vector::operator[] needs an index that does not exist,
> it does a push_back which can/will reallocate the whole vector when a
> bigger memory block is necessary. I had the same mysterious bugs with
> tex2lyx a few months ago.
> 
> This means that if you hold a DocIterator& of an element of the
> compl_vector, it will eventually point into nowhere. I have found where
> it happens yet, but it has to come from that.
> 
> (I am recompiling without stdlib-debug to see whether it makes things
> clearer, but I doubt it.)

I have been bitten by this in another work and it can be puzzling to find the 
real cause. So it is best to be careful as I learned the hard way. :-)

-- 
José Abílio

Reply via email to