I have a memory intensive application loading and unloading large images that crashes due to Memory allocation failure.

I'd like to try the heap separation method to solve this. Set one area for images and another for all the rest which tend to be small objects.

I found windows API functions such as HeapAlloc\HeapCreate but I'm not sure this is the way to go. What's the best way to tackle this?