In Kernel space, after we can allocate memory, we can also get a table
from debugger to see what is the size of memory allocated, how many
allocations done, tag of allocation, how many allocations are not
freed/leakage.

Do we have any mechanism that give same type of info in user mode Apps
when I use virtualAlloc() and virtualFree() functions. I want to make
sure I am not causing memory leaks in user mode App and how to check
that.

Thanks.

Re: usermode memory management by Maxim

Maxim
Sat Sep 06 18:11:40 CDT 2003

MFC library has a leak detector in it.

To employ it, only use operator new() for all allocations.

If you will have leaks - then the app will list all leaked blocks to the
debugger output during exit.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Raj" <r_konjeti@mailcity.com> wrote in message
news:8509fde8.0309041624.6ee6b5f8@posting.google.com...
> In Kernel space, after we can allocate memory, we can also get a table
> from debugger to see what is the size of memory allocated, how many
> allocations done, tag of allocation, how many allocations are not
> freed/leakage.
>
> Do we have any mechanism that give same type of info in user mode Apps
> when I use virtualAlloc() and virtualFree() functions. I want to make
> sure I am not causing memory leaks in user mode App and how to check
> that.
>
> Thanks.