> From the documentation to the MemHandleNew and MemPtrNew functions,
>these are supposed to compact the heap and try again if there is a
>failure anyway. I don't see what your wrapper is supposed to do.
I agree, the documentation hints that those functions would do it for you.
But...
From a note under the Reference doc for MemHeapFreeBytes:
"An alternative approach is to just call the MemHeapCompact function as
necessary when an error is returned by the MemPtrNew or MemHandleNew
functions."
My philosophy with the many horrors of Palm documentation is:
If I cannot empirically verify it, err on the side of safety.
Curtis Jackson
Director of Engineering
Aniwhere, Inc.
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/