Heap corruption: What could the cause be?

后端 未结 13 1514
时光取名叫无心
时光取名叫无心 2020-12-25 12:56

I am investigating a crash due to heap corruption. As this issue is non-trivial and involves analyzing the stack and dump results, I have decided to do a code review of file

13条回答
  •  Happy的楠姐
    2020-12-25 13:29

    You can look at the sample chapter from the Advanced Windows Debugging book which provides various examples of heap corruption.

    EDIT: If you are using stl containers which might move elements during changes (i.e. vector, deque), ensure that you are not keeping references into such elements across operations which might changes it.

提交回复
热议问题