something that i see is that when youwhat is happening is you are deleting the memory there and the spot in you vector, so every thing will be moved up in you vector. so you need to doCode:delete MeshList[i]this is only a issue because you used .size() for your comparisonCode:delete MeshList[i] i--;
i dont know if this will fix anything but it is some thing to look at