Wednesday, July 26, 2006

Finding memory leaks in Windows


I was trying to figure out where a memory leak was coming from on Windows, and didn't have the luxury of using Purify, and this really helped:
Essentially, VirtualAlloc is the equivalent of sbrk in other OS's, and allocates virtual pages to the process. If you can find out what's calling that all the time, you're likely to discover what's allocating memory.

No comments:

Post a Comment