Background
I'm trying to track down a memory leak issue, where I know (from _CRT_DEBUG_MALLOC and MFC's and the CRT's leak detection) the specific line of where memory is leaked, but since this line is invoked so often, I do not know which call actually leaks. And the Allocation-Number + __p__crtBreakAlloc() doesn't help, because it's a different allocation number each run.
Anyways, so far for background. If you think I should be using a different tool, please leave a comment. I would appreciate if answers concentrate on the actual question instead of my underlying problem, as I find that much more interesting than the leak itself (I'll find that eventually through enough poking).
Question
Is it possible in WinDbg (I'm pretty sure it ain't in VS) to have a breakpoint with the following properties:
- It doesn't break. (So it's a "tracepoint")
- When hit, it records the call stack (up to a certain depth)
- It should also record some global state (variables, maybe just the raw value of a memory address)
Is this possible? How?