Visual Studio - how to find source of heap corruption errors

前端 未结 8 1948
失恋的感觉
失恋的感觉 2020-12-02 05:32

I wonder if there is a good way to find the source code that causes a heap corruption error, given the memory address of the data that was written \'outside\' the allocated

8条回答
  •  误落风尘
    2020-12-02 05:55

    I am assuming C++ as the language.

    If the error is reproducible and the corrupted address is always the same, you can put a data breakpoint to stop the program when writing at this address.

提交回复
热议问题