Hi all,
I am working on a program and I have heap corruption errors. After I debug, I found out that the following codes have problem. And I moved these code to another project and debug it. Please see the following:
The debug message shows "Error 1 error C3861: 'free': identifier not found d:\study\....\a a.cpp 8"
Could you please tell me how to free memory for 'targetFile' array?
Thanks a lot!!
I am working on a program and I have heap corruption errors. After I debug, I found out that the following codes have problem. And I moved these code to another project and debug it. Please see the following:
Code:
#include <stdafx.h>
int main()
{
char targetFile[] = "target.txt";
free(targetFile);
return 0;
}
Could you please tell me how to free memory for 'targetFile' array?
Thanks a lot!!
Comment