Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Difference between VirtualAlloc, new or HeapAlloc?

35 views
Skip to first unread message

Frank Loewenthal

unread,
Apr 29, 1999, 3:00:00 AM4/29/99
to
Hi all

I am working on routines for image processing. For the Allocation of
large amount of memory it seems that there are several different
possibility, such as HeapAlloc, VirtualAlloc or the C++-Memory with
new. I personally would prefer new, because this would be portable to
other platforms. But which are the differerences? Perhaps anybody has
suggestions?

Best regards
Frank


rsquar...@gmail.com

unread,
Aug 10, 2012, 4:33:35 AM8/10/12
to
Yes, there is difference between HeaAlloc, VirualAlloc and new.
the new and HeapAlloc is same, which allocates memory on Heap,
but in case of virtualalloc it allocates virtual memory in chunks(4KB)
so if you want to large memory most probably u have to use VirtualAlloc.
0 new messages