读书人

VC6.0运作出错First-chance exception

发布时间: 2012-08-02 11:35:25 作者: rapoo

VC6.0运行出错First-chance exception in liucong.exe: 0xC0000005: Access Violation.
程序是建立一个动态加载库PC.DLL,在PC.DLL里面隐式加载WINIO.DLL,然后再

liucong.exe里调用PC.DLL,调用时找不到外部函数入口地址,编译组建都没有报错,运行时报错

Loaded 'ntdll.dll', no matching symbolic information found.

Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.

Loaded 'K:\360data\重要数据\我的文档\VC++\liucong\Debug\PC104LIB.dll', no matching symbolic information found.

Loaded 'K:\360data\重要数据\我的文档\VC++\liucong\Debug\WinIo32.dll', no matching symbolic information found.

Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.

Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.

Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found.

First-chance exception in liucong.exe: 0xC0000005: Access Violation.

The program 'K:\360data\重要数据\我的文档\VC++\liucong\Debug\liucong.exe' has exited with code 0 (0x0).



[解决办法]
这儿有一个与lz的问题很相似的问题:
http://topic.csdn.net/u/20091117/14/3216b6c9-616b-42a3-919a-57fbad79e899.html
[解决办法]
First-chance exception in liucong.exe: 0xC0000005: Access Violation.
这个错误是内存访问失败 程序访问地址 0xC0000005结果出错了,你大断点单步调试看一下是哪个地方出错,再看是哪个指针的地址是0xC0000005,然后看一下是不是指针没有合理的初始化或者分配内存。

读书人网 >C语言

热点推荐