MemPtrNew allocate in the dynamic heap a non-movable chunk
MemHandleNew allocate in the dynamic heap a movable chunk
FtrPtrNew allocate a new chunk on the storage memory

storage memory can be accessed only with DmWrite function

> > What is the prefered method for allocating memory on the heap
dynamically
> > for objects created with C++?  Right now I use the keyword new.  Is it
> > better to use MemHandleNew?  If so, how would you do this?  Thanks.
>
> My limited understanding of Palm memory is that MemHandleNew allocates the
> memory in storage memory, not on the heap.  There's generally much more
> storage memory available than heap (e.g., on an 8Mb device, only 256Kb may
> be heap and the rest is storage), so the advantage of using MemHandleNew
is
> there's more memory available to you.  If your program is not very memory
> intensive, than you can just use "new" and the heap.
>
> If I'm wrong about this, I'd appreciate being corrected.
>
> Rich

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to