Hi
What does the following error message mean?
*** glibc detected *** double free or corruption (out): 0x0804d0d8 ***
Aborted
SHuo
Printable View
Hi
What does the following error message mean?
*** glibc detected *** double free or corruption (out): 0x0804d0d8 ***
Aborted
SHuo
It sounds like you are deleting a pointer twice. Are you using dynamic memory (new/delete)? Are you using classes? Are you using them together without a copy constructor and copy assignment operator?
To illustrate with code.....
This is something dangerous that should not be done.Code:...
string *s = new string("Deleted 2x.");
delete s;
delete s; /* DANGER, WILL ROBINSON! */
...