what is the best way of allocating huge amounts (5mb and more) of memory (for storing modeldata, bitmaps …)
presently im using the window api call
HeapCreate
to create a new heapobject of the desired size. (but it feels a little strange always to use HeapAlloc to get memory from this heap)
is there any other way to get memory without creating a new heap (malloc doesnt provide enough mem…)
Another note. Always prefer standard C++ constructs, operators, classes, etc. to Windows or operating specific alternatives. If you ever have to port your code to another platform, it will go much easier.
i also tried using new, but i didnt get enough memory (after some models were loaded i wasnt able to allocate more…).
with heapalloc this works… well i guess i have to stick to it thx for the answers