Posted by Daniel Longest on March 25, 2001 at 14:46:04:
In Reply to: Re: Problem while deleting dynamically allocated array... posted by Juan Romero Jr. on March 24, 2001 at 16:47:55:
If the pointer is null, delete will have no effect.
Daniel
: Umm shot in the dark- maybe your deleting a Null pointer (0x0 is Null in Hex)
:
: : If i had an array that has been dynamically allocated, does anyone know why i might get an error when trying to deallocate the memory with a statment like:
: : delete [] arrayPtr;
: : the error happens at execution time and looks like this:
: : Debug Error!
: : DAMAGE: after Normal block(#108) at 0x0...
: : (press retry to debug the application)
: : If anyone has any idea what might be causing this error, I'd like any help...
: : Thanks, Evan