Delete fails when char * is used with strcat()
Hi,
This will probably sound like a really n00b question, but here goes... I allocate a char * with new[]. i can then delete it with delete[]. However, if between the new and delete the char * is used with string functions like strcat(), i get an access violation error. I cant find any information on this, can anyone help me??
thanks.
Re: Delete fails when char * is used with strcat()
Quote:
Originally posted by mankeyrabbit
Hi,
This will probably sound like a really n00b question, but here goes... I allocate a char * with new[]. i can then delete it with delete[]. However, if between the new and delete the char * is used with string functions like strcat(), i get an access violation error. I cant find any information on this, can anyone help me??
thanks.
post the code between new and delete...