> -----Original Message-----
> From: Scott L. Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 24, 2000 4:30 PM
> To: Palm Developer Forum
> Subject: RE: Keeping locked ptrs around to Dm chunks -- bad?
>
>
> > From: Jeff Ishaq [mailto:[EMAIL PROTECTED]]
> > I'm using a temporary database to offload some string storage into
> > the storage heap. This database essentially holds the strings that
> > appear in a dropdown list of selections.
> >
> > In doing this, I have locked down 15 different chunks.
> > Is there a more efficient way to do this?
>
> Two alternatives come to mind:
Thanks for the ideas, Scott. Using a custom draw fcn for the list is
certainly a good idea, but it's just not practical with the manner in which
this data is acquired (queries to a database) -- we found it works a lot
faster to get all 15 strings in one bunch, instead of making 15 incremental
calls through to the DAOs.
Making a single chunk with self-packed strings seems to be the best idea.
That way, only one chunk is locked down for the duration of the List
resource. Good idea.
But my original question still stands -- what is the drawback to hanging on
to locked Dm-allocated chunks? It seems like I have impunity since I'm the
only one who is accessing the database, it's deleted when I'm done with it,
etc. Unlike locked MemMgr chunks, which impact everyone who needs dynamic
heap!
-Jeff
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html