Debug Visual C++ memory allocation problems

前端 未结 2 1625
逝去的感伤
逝去的感伤 2021-01-26 06:53

I\'m debugging a software which crashes eventually with one of the following messages:

1. DAMAGE: after normal block (#24729280) at 0x00D710E0
2. Debug Assertion         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-26 07:10

    You can run your application in release mode by attaching to Windbg.

    • Enable the gflags ( As you mentioned)
    • Start the application in release mode.
    • Attach it to Windbg using Attach to process option in Windbg.
    • Configure the correct path for release PDBs.
    • Reload the PDB manually using .reload /f in case of automatic loading fails.
    • Perform the use case.

    WinDbg would stop the execution whenever an exception occurs. For every first chance exception, analyze the reasons. It could be one of the error for crash.

提交回复
热议问题