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