new and VirtualAlloc
- From: George George
- Date: Sun, 13 Jan 2008 00:44:37 -0800
Hello everyone,
I heard some points that the memory allocated by new does not belongs to virtual memory, and onlymemory allocated by VirtualAlloc belongs to virtual memory.
1.
I think this statement is not correct. Since all memory touched by current process belongs to virtual memory (either reserved or committed). No matter how (through which API) developer is using.
2.
And new always utilize VirtualAlloc in underlying internal implementation code, so new (in implementation point of view) will consume virtual memory -- the same as what VirtualAlloc does.
Are my points (1) and (2) correct?
thanks in advance,
George
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.
- Follow-Ups:
- Re: new and VirtualAlloc
- From: Tim Roberts
- Re: new and VirtualAlloc
- Prev by Date: Re: virus or some other malware in a movie file
- Next by Date: using task manager to monitor memory
- Previous by thread: Re: CreateProcessAsUser and non-admin target user.
- Next by thread: Re: new and VirtualAlloc
- Index(es):