环境:VC6.0。
调试出错的信息:
First-chance exception in xx.exe (NTDLL.DLL): 0xC00000FD: Stack Overflow.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
First-chance exception in xx.exe: 0xC0000005: Access Violation.
其中的XX是项目程序输出的名,相信程序员们都知道如何设置,不过在此也多说一下。
指定程序编译输出的程序名方法:
Project -> Setting -> Link标签页下有一个“Output file name ”,在此修改即可。
出现以上调试错误的原因,网上找了无数,基本上都说对,就是访问了未知指针,出现的问题也很多,不过就是无法定位出错的地方。实在没办法了,只好出面检测程序,看哪里使用了无效指针,最后发现是读取一个不存在的文件出的错。
最后的处理:添加文件及内容,才没有上面的问题。
总结:
以上问题应该就是访问了非法指针或者NULL指针,不过不好定位(自己不会),希望知道的大牛指点。
roject -> Setting -> Link标签页下有一个“Output file name ”,这是怎么回事???????