06-21-2019, 09:04 AM
I'm using a memory pool - I look for a block of memory that either matches what I need or one that is bigger if no match is found. If the pool is smaller than the maximum size and a block of memory is needed, a chunk of memory is allocated that matches the amount required for the bitmap. So I have a list of blocks of memory, not one giant block of memory as I can't know exactly how much memory is required beforehand.
Mike
Mike