On Tuesday 11 February, "S. Sahayaraj" wrote: > for (; i != nilObjectList()->end(); i++, nils++) > { > *i = NULL; // Added this piece to avoid the crash that is happening > on next line. Duncan, what do say?. > delete *i; > } Do I really have to explain why that code is wrong? Think about what you are deleting. -- -- Duncan Grisby -- -- duncan@grisby.org -- -- http://www.grisby.org --