zoukankan      html  css  js  c++  java
  • Qt Access violation code c0000005 debug write access violation

    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 compiler 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


    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 from Microsoft:
    First-chance exception at 0x7792ba29 in ***.exe: 0xC0000005: Access violation reading location 0xbaadf00d.

     

  • 相关阅读:
    UVA1349 Optimal Bus Route Design 最优巴士路线设计
    POJ3565 Ants 蚂蚁(NEERC 2008)
    UVA1663 Purifying Machine 净化器
    UVa11996 Jewel Magic 魔法珠宝
    NEERC2003 Jurassic Remains 侏罗纪
    UVA11895 Honorary Tickets
    gdb调试coredump(使用篇)
    使用 MegaCLI 检测磁盘状态并更换磁盘
    员工直接坦诚直来直去 真性情
    山东浪潮超越3B4000申泰RM5120-L
  • 原文地址:https://www.cnblogs.com/smartvessel/p/2748077.html
Copyright © 2011-2022 走看看