My dev is VS2008, DX9, Windows XP. I am trying to add protection processing from memory. When malloc returns NULL, I would list the resource to disk and free the resources in memory.
But sometimes malloc always returns NULL, even if I free up most of the resources and use the memory to use, and the size of the VM is only 800 MB in the task manager.
I think that using malloc to allocate 88 bytes should be good when the process memory is only 800 MB. But malloc always returns NULL.
Could this be memory fragmentation? This is not like using process memory is not too much.
alt text http://i.imagehost.org/0267/Snap2.jpg
c ++ c memory-management windows directx
Buzz
source share