当前位置: 首页 > 网络知识

Qt Access violation - code c0000005 debug write access violation

时间:2026-01-29 09:26:29
When trying to debug my Qt application, the app throw a exception as " Exception at 0x77da2073, code: 0xc0000005: write access violation at: 0x1, flags=0x0"

I am using Qt creator and vs2005 cpiler and debugger.

I load the project on vs2005 and run debugger. There is no exception. But I found "first chance exception

write access violation at: 0x1, flags=0x0"in the vs2005 output windows.

So I guess whether the exception is the same as with vs2005. And it could be disable with CDB.exe options。

Sure, go to Qt creator>options>debugger>CDB

add x for CDB additional arguments.

Ignore the first chance exception.

I add this into Qt JIRA

QTCREATORBUG8141

There is "The inferior stopped because it triggered an exception.
Stopped in thread 0 by: Exception at 0x0, code: 0xc00000005: write access violation at: 0x8, flags=0x0." happened when I want to debug my app on debug and release build.
No exception when run my application on release and debug build.

I loaded my project and debug using VS2005. There is "first change exception" reported on vs2005 output windows.

Finally, I add x option for CDB.exe and solved my problem.

So I wish Qt creator can report "first chance exception". Clear report can save mush time to solve the problem.

I hope this will be better:
"The inferior stopped because it triggered an exception which is a first chance exception"

Here is the report fr Microsoft:
Firstchance exception at 0x7792ba29 in ***.exe: 0xC0000005: Access violation reading location 0xbaadf00d.





上一篇:FileZilla Server 使用教程
下一篇:Qt 项目实战:MD5工具开发
Qt
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器
  • 英特尔第五代 Xeon CPU 来了:详细信息和行业反应
  • 由于云计算放缓引发扩张担忧,甲骨文股价暴跌
  • Web开发状况报告详细介绍可组合架构的优点
  • 如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳
  • 美光在数据中心需求增长后给出了强有力的预测
  • 2027服务器市场价值将接近1960亿美元
  • 生成式人工智能的下一步是什么?
  • 分享在外部存储上安装Ubuntu的5种方法技巧
  • 全球数据中心发展的关键考虑因素
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器

    英特尔第五代 Xeon CPU 来了:详细信息和行业反应

    由于云计算放缓引发扩张担忧,甲骨文股价暴跌

    Web开发状况报告详细介绍可组合架构的优点

    如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳

    美光在数据中心需求增长后给出了强有力的预测

    2027服务器市场价值将接近1960亿美元

    生成式人工智能的下一步是什么?

    分享在外部存储上安装Ubuntu的5种方法技巧

    全球数据中心发展的关键考虑因素