So here is what I'm trying to do:
Inline Code Example Here
my constructor takes a char pointer:
lengthString = strlen(nameSentFromMain) + 1; namePrivate = new char[lengthString]; strcpy_s(namePrivate,lengthString,nameSentFromMain);
next in the destructor to avoid memory leaks I have:
delete  namePrivate;
The error I'm gettting says _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). Strangely enough the destructor seems to be getting called twice for each new. Has anyone run into this before? I couldn't get a solid answer from google.