程序一运行就会出现如下提示: "0x004260a8 "指令引用的 "0x0000000c "内存。该内存不能为 "read "。 
要终止程序,请单击 "确定 "。 
要调试程序,请单击 "取消 "。 按取消进入VC的调试,就会出现如下提示: Unhandled   exception   in   MyTest.exe:0xC00000005:Access   Violation 我想问的是,有那些情况会出现这种错误。 
谢谢各位! while(!feof(fp_in)) //第二次循环读时宕机,文件指针为空了
{
memset(temp, 0, sizeof(temp));
if(fgets(temp, MAX_LINE_COMTENT, fp_in))
{
isearchresult.line ++;
memset(&isearchresult.column, 0, sizeof(isearchresult.column));
/*caculate the string line and row*/
pos = strstr(temp, recv_buf.string);
if(NULL != pos)
{
strncpy(isearchresult.buf_out, temp, strlen(temp)-1);

while(pos)
{
isearchresult.count ++;
column = pos-temp+1;
pos=strstr(pos+length, recv_buf.string);
//fprintf(fp_out,"[tip_2]:--> find the string <-- \n\t< find [%d] times >:[%s] appear in line:[%d] column:[%d].\n",count, argv[Seek_string],  line, column);
isearchresult.column[isearchresult.count] = column;

}
}
/* Send data to cilent */
memset(send_data, 0, sizeof(send_data));
memcpy(send_data,&isearchresult,sizeof(isearchresult));
int bytes = 0;
bytes = send(clientSocket, send_data, bytes, 0);
if(SOCKET_ERROR == bytes)
{
printf("Send data failed.\n");
return (-1);
}

}
}