Memory allocated by DmNewHandle is a bit risky because such memory isn't
associated with a database.  It is orhpaned memory.  This means the user
can't delete it.  Orhpaned memory is cleaned up when Palm OS is reset, and
many users go a long time without resetting (I wish they could go
forever...)

It is therefore important to attach memory allocated using DmNewHandle to a
database.

To free the memory, use MemHandleFree or MemPtrFree.

When you can, use DmNewRecord since it's safer and more folks will
understand the code.


-Roger Flores


Reply via email to