Re: new vs. LocaAlloc when determining heap memory size by Michael
Michael
Tue May 06 06:44:35 PDT 2008
Actually no difference. In CE CRT, new just calls malloc just calls
LocalAlloc. So both new and LocalAlloc use the same heap - the default
process heap.
I don't know what you're seeing in Remote Performance Monitor to indicate
otherwise, but call it either a problem with the tool or, dare I say it,
user error :)
--
Michael Salamone, eMVP
Entrek Software, Inc.
www.entrek.com
<Nirre.Larsson@gmail.com> wrote in message
news:95fc878c-c450-4389-82ad-eed7fb785a61@c58g2000hsc.googlegroups.com...
> Hi,
>
> Using the ToolHelp functions and the Remote Performance Monitor I've
> been trying to determine the Heap memory size in my application. This
> does not seem to work when using 'new' to allocate memory from the
> heap, however when using 'LocalAlloc' I can monitor the changes.
>
> What is the difference in using new or LocalAlloc when it comes to the
> functions described above? In which way can I monitor the heap memory
> if I use the 'new' operator?
>
> Many thanks!
>
> // Nicklas