I have never been in a situation where I wanted to use one until now, so I was a little surprised when I went to delete it and got a "Debug Assertion Error". I can access the array directly through the pointer as though the pointer itself were the array, but I cannot delete the pointer without that error popping up.
I don't want the memory to be sitting on the stack when I am done using it, so I would rather not declare the array normally if it can be avoided. I thought about using a linked list (the array items are class objects), however when I finish debugging the class I am going to implement a linked list into its container class anyway. This array is needed only for a short portion of the program.
Any easy way around this?