tags:

views:

67

answers:

1

My programme run to a point where calling the new keyword would cause the error stated above. eg. char* a = new char[100]. The error is reproducible and everytime I run the programme it is until that point of calling new keyword that causes problem. It seems to be the memory location is corrupted at the point. What is the possible cause for that?

Thanks.

+1  A: 

This error means that you have corrupted the bookkeeping data of the system memory manager. Such corruptions are typically the result of incorrect use of pointers, such as

  • Using an uninitialised pointer
  • Using a pointer after the memory it refers to has been freed (the freeing could have happened through another pointer)
  • Writing outside your array bounds
Bart van Ingen Schenau