First-chance exception in xxx.exe (MSVCRTD.DLL): 0xC0000005: Access Violation问题
语句出问题部分是:
......
char path1[100];
FILE* fn;
CString FileName;
CString TFile;
_getcwd(path1,100);
TFile=path1;
FileName=TFile1+"/"+r201696812.ini;
fn=fopen(FileName,"r+");
fscanf(fn,"%d",&Index_Num);
......
设置断点后按F5调试到fopen()函数时,提示以下错误:
First-chance exception in YiBiao.exe (MSVCRTD.DLL): 0xC0000005: Access Violation
而后跳出错误提示框
Unhandled exception in YiBiao.exe (MSVCRTD.DLL): 0xC0000005: Access Violation
点击确认后出现对话框“Find Source",提示让我输入INPUT.C的路径,但在点击选择过程中又显示"no file by that name was found in this directory."
r201696812.ini文件确定放在该目录下边,请问各位大神,这个问题如何解决?
如果直接运行程序,提示MicroSoft基础类运用程序出错停止工作。。。