I am getting an assert error for a delete[] statement that only usually happens to me when i accidently try to delete it twice or something.
But can anyone tell me why this code also gives me an assert error in ms vc++?
1 2 3 4 5
int main ()
{
char* title = newchar[11] = "123456789\0";
delete[] title;
}
Here's what I'm getting: http://i35.tinypic.com/14dlyzm.jpg
So far I've been able to reproduce this error on two different computers, one with the latest Visual Studio and one with the Express edition.