Hello,

I have a source code like this:

void func()
{
char* str;
str=new char[5*sizeof(char)];
.
.
.
delete line;
}

When the program get to the "delete line", It shows the following error:
Debug assertion failed!
expression: _BLOCK_TYPE_IS_VALID(phead->nblockuse)

Why does I get the error message?
As I understand, I can use the delete operator for every varabile that was allocated with the "new" operator...

Thnk you,