Chris Shearer Cooper
2007-10-18 14:10:31 UTC
I'm trying to create a large (5734x10460) bitmap using
CreateCompatibleBitmap() and getting ERROR_NOT_ENOUGH_MEMORY errors. The DC
is set to 32 bits per pixel, so that's 4 bytes per pixel, for a total of
approximately 229M of memory needed (right?). I've got 2G of RAM, and 1G of
it free, so I'm betting it's not that I'm running out of available RAM (XP
Pro, by the way).
Does CreateCompatibleBitmap() have some other restrictions on its memory
usage? For example, is it using graphics card memory somehow, and that's
the limitation?
Thanks,
Chris
CreateCompatibleBitmap() and getting ERROR_NOT_ENOUGH_MEMORY errors. The DC
is set to 32 bits per pixel, so that's 4 bytes per pixel, for a total of
approximately 229M of memory needed (right?). I've got 2G of RAM, and 1G of
it free, so I'm betting it's not that I'm running out of available RAM (XP
Pro, by the way).
Does CreateCompatibleBitmap() have some other restrictions on its memory
usage? For example, is it using graphics card memory somehow, and that's
the limitation?
Thanks,
Chris