I have found that part myself, but it doesn't make sense to me.
I know for a fact I have enough memory.
I'm not even at 10% of my memory usage. Further more, I have 125 members of Foo, each talking with 14 other. each vector <short> has 3 short number in it. Total of 30KB I don't think this should affect in any way.
vectors try to allocate contiguous memory. You might not have enough contiguous memory, so if it isn't needed, you could try a list or something. It could also be that your program has a hard limit on the amount of memory it can use.