Page 2 of 2

Posted: Sun Feb 19, 2006 7:57 pm
by Trond
Can you not use VirtualAlloc() for all memory areas?

Posted: Sun Feb 19, 2006 8:25 pm
by Fred
No, as each page is rounded to 64k, so a 20 bytes memory will requiers 64k.

Posted: Sun Feb 19, 2006 9:26 pm
by Trond
I see, thank you. :)

Posted: Sun Feb 19, 2006 10:01 pm
by Dummy
As the Size of a Memoryblock is saved anyways in PBv4 you could simply set a Memory mark like 2mb:
memorySize < 2mb: heap
memorySize > 2mb: virtual

Posted: Sun Feb 19, 2006 10:42 pm
by Fred
That's what i told in a previous post, but it could take up to 16 bytes per block to keep the memory 16 bytes aligned.