Posted by leon gunden on March 25, 2001 at 11:12:36:
In Reply to: Re: Problem while deleting dynamically allocated array... posted by Juan Romero Jr. on March 24, 2001 at 16:47:55:
: Umm shot in the dark- maybe your deleting a Null pointer (0x0 is Null in Hex)
deleting the null pointer is not an error.
: : 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;
you did allocate with 'new ' and not 'new' right (i.e. arrayptr = new array, not arrayptr = new array(120)), because there is a difference...
: : 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
Post a Followup