Quote Originally Posted by dwks
Code:
delete[] idArray[i];
Unless idarray is a three dimensional array, which it isn't, you should use this instead:
Code:
delete idArray[i];
delete[] is only for arrays.
idArray is a 2D array so it would make sense to delete the array in one of the dimensions and then delete the array in the second dimension. idArray[i] is in fact an array and not just an element. OR am I wrong. Thanks
Amish