> If you lock the handle to a PDB record that contains your memory chunk
> for the duration that your pointer into your struct is in scope you
> should be OK.
So I have to lock all the records I have accessed until I no longer want them, 
otherwise they may 
become invalid even though I have not changed any data?
 
That will be OK as long as I can keep many Palm records locked at the same time.
 
My only issue then is, what happens if I need (say) 50 of my contact records to 
lock the same Palm 
record because they all have the last name of "Smith", or 40 have "Smith" and 
10 have "Smyth" both 
of which are in the same physical Palm record. My understanding is that only 14 
locks are possible 
on a single Palm record.
 
If I find a way round that so that only the first "in" locks the record, will 
the pointers for the 
other 49 contacts remain valid as long as contact 1 maintains a lock?
 
If the Palm records have to be locked just to keep the pointers valid and NOT 
just when I need to 
edit, what do I need to do to allow my one contact to be edited (again remember 
no adds, deletes or 
size changes - The only editing is to toggle one byte between True and False).
 
Thanks,
Clive
Clive Walden
Walden Consulting
Phone: 760-632-5856
Web site: www.clivewalden.com
 


To unsubscribe send an email to  [EMAIL PROTECTED]
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to