This seems like a buffer overrun. Take closer look and see if you put in the string variable some character arrays(char*) which are not NULL terminated.
This could be a cause.
Perhaps those class members? What type are they?
From what you say, the error appears only at deallocation time, so the string tries to delete some memory which it does not own.
Regards
Bookmarks