Bill Heidler wrote:
> My first solution approach for updating the records was to use
> DmResizeRecord()
> to reduce the size of the old record (to 0 if possible, thus holding my
> record slot
> only), allocate a memory buffer using MemHandleNew() ), stuff it with the
> new data
> and then use DmAttachRecord() to replace the old record chunk.

Matt Graham's response:

Can't you just resize the existing record to the new size 
that you want instead of messing with MemHandleNew() and 
DmAttachRecord()?

Bill Heidler's response:

Yes I can, but if the records are large then I have two buffers allocated
at the same time, reducing the memory space available.

I may end up doing this, but I would like to know what DmResizeRecord()
is doing in terms of locking buffers, and whether there is a workaround to
the POSE memory leak detection for attached buffers.  I would think that
anyone who used DmResizeRecord() and DmAttachRecord() would want
to know the answers to these questions.






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

Reply via email to