Heap corruption

I'm getting what seems to be a somewhat common error, that my heap has been corrupted. Unfortunately, I'm getting this on calling a new, which I assume means the issue occurs some time before this.

What can cause heap corruption?
Memory stomps, attempting to free memory that is not on the heap, double-freeing heap memory, etc...
>>double-freeing heap memory

jsmith:
I thought it was safe to delete a deleted pointer
Absolutely not.
But it is safe to delete 0. However, setting deleted pointers to 0 will not solve the real problem.
why dont you post your code so that somecan can find the error in it??
Topic archived. No new replies allowed.