Please download this code plus bitmap then and give it a try:
http://superku.de/crash_test5.zipThe problem:
the application errors E2005 after ~100 bitmaps, ~1.6GB of memory (task manager), with sys_memory at 849MB and d3d_texbmaps at 776MB. After closing that message it prints "Out of Memory" (E1005).
Changing
if(0) // < ---------- here
to true results in sys_memory not rising and me being able to create twice as many bitmaps.
EDIT: If I'm not mistaken I only then have ~800MB of memory to work with to make PC games with A8.