CreateBitmap
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I keep having a CBitmap.CreateBitmap allocation fail, I get an error code
for not enough memory from GetLastError(). The problem is I have plenty of
RAM free at the time, like 500 MB out of 1000 MB of total system memory free.
I can also allocate a 50meg char* block with with out any problems either.
The size of Image I am trying to allocate is pretty big at 1600x1200@32bit.
At the time I get the failure I do have about 8 other of these bitmaps in
memory, but I do have around 500 megs of system memory free too.
Can any one think of a reason why I can't allocate another bitmap? I am
using XP Pro as the OS.
.
Relevant Pages
- Re: TBitmap memory allocation
... I'm working on a project where we need to allocate a ... >as we have increased the number of bitmaps allocated. ... >read how much memory the winAPI allocates for each bitmap, ... >cannot say excactly how many this is, but it is around 2000 TBitmaps). ... (comp.lang.pascal.delphi.misc) - TBitmap memory allocation
... I'm working on a project where we need to allocate a ... as we have increased the number of bitmaps allocated. ... I have tried to measure how much memory is allocated from each ... cannot say excactly how many this is, but it is around 2000 TBitmaps). ... (comp.lang.pascal.delphi.misc) - TBitmap memory allocation
... I'm working on a project where we need to allocate a ... as we have increased the number of bitmaps allocated. ... I have tried to measure how much memory is allocated from each ... cannot say excactly how many this is, but it is around 2000 TBitmaps). ... (comp.lang.pascal.delphi.misc) - Re: Is there a maximum contiguous memory allocation?
... but could ALLOCATE it! ... allocate it if I had 2GB of physical memory! ... the amount of physical memory I have installed. ... Note that you can use raw VirtualAlloc to improve your ... (microsoft.public.vc.mfc) - Re: The Lisp Curse
... Memory is allocated and free'd behinds the scenes in C ... But that calls malloc or libc, ... Most C file I/O functions allocate space from a storage device, ... (comp.lang.forth) |
|