If you put {,,msvcrtd.dll}_crtBreakAlloc (or change msvcrtd.dll with proper dll, maybe msvcr80d.dll) in watch window. Press F10 and you should see -1 as value. Change value with memory allocation number and debuger will stop at this memory allocation number!!! Great thing for memory leak hunting!!!
Note, if you have multi thread application you will not have always the same allocation number.
No comments:
Post a Comment