-
delete
Code:
char *pdest;
if (pdest = strstr(rawdata, "\"inbox\"") {
delete [] pdest;
}
what am i doing wrong with that?
when running in debug mode, i get errors:
"Previous frame inner to this frame (corrupt stack?)"
it happens at the delete step. am i using the wrong syntax?
noob out :)
-
You only delete[] what you new[].
-
Well...
EDIT: Ken got it first and better than I did.
You are also missing a closing parenthesis, btw
-
thanks :)
oh, and the closing ) was there, just bad copy/pasting :)
thanks again guys.