What useful things can I do with Visual C++ Debug CRT allocation hooks except finding reproduceable memory leaks?

前端 未结 3 1655
野的像风
野的像风 2020-12-06 21:52

Visual C++ debug runtime library features so-called allocation hooks. Works this way: you define a callback and call _CrtSetAllocHook() to set that callback. No

3条回答
  •  盖世英雄少女心
    2020-12-06 22:20

    You could keep record of every allocation request then remove it once the deallocation is invoked, for instance: This could help you tracking memory leak problems that are way much worse than this to track down.

    Just the first idea that comes to my mind...

提交回复
热议问题