Hi there,

I have an array of pointers to objects, and I wish to delete an object pointed to by one of the elements. However, when I try to do this using delete MyPtrArray[2]; my program crashes at runtime. The object pointed to by MyPtrArray[2] definitely exists, as I can access the object's data via the pointer. Am I using delete incorrectly here?

Thanks!