After removing all objects from self.arrMonthHas
, please ensure that self.arrMonthHas
is not encountered anywhere else. Because though all the objects are removed but still memory is allocated for the same. So if you try to access any element of your array, it will crash.
P.S. Please post your error.