RFC on the preferred method of allocating a buffer 513 Megabytes in size.
Assume the platform is a Windows NT Machine with 768 MB of RAM.
The buffer is to be used to hold many 14MB bitmap images which will be manipulated as well as output to given window DC's for viewing. In addition, an image buffer may be created with smaller versions of these images, to be used to render thumbnails from.
Do I a) create a memory device context and load a 513MB size bitmap into it. I'm not sure how Windows allocates/manages the memory for bitmaps selected into DC's) b) Allocate the memory using memory mapped files method (memory mapped file is mapped in RAM). c) Use the Virtual alloc function. or d) use c++ new? My take is to create a class which will when instantiated, allocate a buffer large enough using virtualalloc(). This class will be instantiated as a global object when the application initializes. Another class it contains will load the image(s) from files into the buffer.