> It might sound silly (and I might slipped something from manual) but how
> to determine size of the DM record (what's the best way)?

i'm pretty sure MemHandleSize works for this.


> Let's suppose that I generate data (bytes) and I store it (these bytes
> one by one) into record by DmSet and record is resized each time by 1
> byte. After some data storing I'd like to know how big has my record
> become.

your algorithm will have better performance characteristics across the board
(speed, battery usage, memory fragmentation, etc) if you resize by some
larger increment, and keep track of how much room is left before you need to
resize it again.


> Second: I'd like to make sure if Dm record attached to text field (Fld) is
> resized AUTOMATICALLY when I write into field and close that field. It
> acts as if it is (I create small record and write more text than it's
> size is into field, and it's stored well). I'd just like someone who knows
> for sure to say if that's correct or not.

yes, it does.  if you want to be extra certain and verify for yourself, you
can sign up to download the OS source code.  or just download the sample
source for ToDo, for example (which is available on Palm's web site without
even needing to sign anything).


Reply via email to