> 
> Richard Hartman wrote in message <7003@palm-dev-forum>...
>  In short the question
> is whether you can save a handle to a db record
> and expect it to be valid when you read the record
> back, given that the handle being saved points to
> a chunk that is attached to some database?
>
>
> --

No, you can't expect that the handles will remain valid.

Reason #1:  After a hard reset/restore, the handles will change.

Reason #2:  Handles are raw memory addresses. In some future palm os device
with multiple slots, moving a card from one slot to another would change
addresses. That's why the mem mgr stores local IDs for all intra-heap
references.

--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to