gpt4 book ai didi

c++ - 无法追踪访问冲突 0xC00000FD

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:23:01 24 4
gpt4 key购买 nike

我使用 VS2008,我的 MFC 应用程序在设置断点或运行到光标时开始崩溃。我收到很多这样的错误:-

First-chance exception at 0x78a5727c (mfc90ud.dll) in MyApp.exe: 0xC0000005: Access violation reading location 0xfffffffc.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.

调用堆栈已经不多了,它只列出了 NT.dll 中的代码

>   00000000()  
ntdll.dll!7c9032a8()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!7c90327a()
ntdll.dll!7c92aa0f()
ntdll.dll!7c90e48a()
ntdll.dll!7c9032a8()

我无法使用断点或单步执行我的代码来找到问题。如果在 VS 中使用 F5 运行,应用程序“似乎”运行正常。

追踪此问题的最佳方法是什么?

最佳答案

问题标题中的堆栈溢出在哪里?访问冲突通常表示无效的指针取消引用。

使用您的修订历史记录找到事情开始繁荣的第一个版本,然后批判性地分析在该修订中修改的代码中和周围发生的所有指针内容。

关于c++ - 无法追踪访问冲突 0xC00000FD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1657364/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com