Neither.

MemHandleNew()
        This returns a handle to a movable memory chunk.

You can lock it and get a pointer to the memory by calling
MemHandleLock()

You call MemHandleUnlock() to unlock it
and MemHandleFree() to release it

My understanding  is (and I'm going to be interested to see
the Palm Development forum's digest tomorrow morning)
the movable heaps come out of different memory than the 
unmovable heap that MemPtrNew() allocates from.  This latter
heap is what most programmers expect to be "program heap".

I don't usually get this amount of direct mail on a post.
So I could have stuck my hand in a hornet's nest here!

Roger Stringer
Marietta Systems, Inc.

At 10:06 AM 9/26/00 -0700, you wrote:
>> The maximum size of a memory block is a little under 64KB,
>> but you can allocate many such blocks.
>
>thanks - but you're still talking about MemPtrNew (which is limited by the
>heap size), or DmPtrNew/FtrPtrNew (which requires DmWrite)?
>>
>>
>> At 07:47 AM 9/26/00 -0700, you wrote:
>> >> Keep in mind you have 4 kinds of memory available to you on the
>> >> Palm OS(r).
>> >>         Stack   (very small, a few KB, varies by OS)
>> >>         Heap   (very small, perhaps 4KB - 32KB, varies by OS)
>> >>         Lockable memory (very, very large, limited by device RAM)
>> >>         Palm OS 'database' (persistent, for files)
>> >>
>> >
>> >R-
>> >
>> >I feel that I am missing something ;-) Can you tell me how you allocate
>> >large blocks of lockable memory (e.g. > 64k) such that you don't
>> need to use
>> >DmWrite() on the block?
>> >
>> >Thanks in advance,
>> >
>> >Alexander
>> >
>> >
>> Roger Stringer
>> Marietta Systems, Inc.
>


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

Reply via email to