
15 Apr
2009
15 Apr
'09
5:25 p.m.
Bad if the vector resizes and moves them elsewhere
std::vector guarantees that its elements are stored in a contiguous memory block, so it definitely moves the data on resize and invalidates iterators.
I changed from /MT to /MD compiles as per Neil's suggestion and the crash moved to a slightly later new call.
This strengthens the assumption that you've got a heap corruption.