Article # 109, added by Geoworks, historical record
| first | previous | index | next | last |

Passing HeapFlags to MemAlloc.




Q:
I get a BAD_ALLOC_FLAGS error when I try to use MemAlloc. What flags
should I be passing to MemAlloc so it will work? 

A:

You must pass either HF_FIXED, HF_DISCARDABLE, HF_SWAPABLE, or
HF_DISCARDED to MemAlloc. If you don't pass one of those flags then you
will get an ALLOC_BAD_FLAGS error.