I have a pointer that points to a node with dynamic memory allocated. Suffice it to say that my destructor for the node pointers does it's job perfectly, but if I need to delete the entire thing, my compiler spits out nullReferencePointer errors. I have an array of 100 pointers to nodes in a hash table setup. If I have data in tablepointer[50] I would think to call delete on tablepointer[50], and with that, I would assume that the rest of the pointers down the line would have their destructors called, and be safely deallocated. Is this correct? Why am I getting errors?
Savaal
Savaal