函数debug通过,执行正常。release报内存错误。帮我找找原因
void CDxf::ReadARC()
{
char str1[20],str[20];
float x=0,y=0,z=0;
float radius=0,startAngle=0,endAngle=0;
char *ps=NULL;
FILE *fp=fopen("2000DXF.dxf","r");
int count=0;
if (fp==NULL)
{
MessageBox(NULL,"file open error.\n","skjnk",0);
return;
}
while(!feof(fp))
{
//从文件中读取一行数据
fscanf(fp,"%s\n",str);
count++;
}
fclose(fp);
fp=NULL;
}