void noMoreMemory() { cout <<"kein Speicher mehr" < v; for (;;) { // new char[1000000]; uncomment this line for a run with normal exit. // v.append(12); uncomment this line for a run with Bus Error (core dump) } }