"George Aslanis" <[EMAIL PROTECTED]> wrote in message
news:52967@palm-dev-forum...
> Am I allowed to resize an existing AppInfoBlock?

If the app info block is a handle rather than a pointer, you can resize.
Just make sure it's not locked when you do so. You use DmDatabaseInfo to get
a local ID for the app info block. You can then determine whether this is a
handle or a pointer using MemLocalIDKind. If your app creates the app info
block as a handle, it's probably safe to assume it stays that way. I'd put a
debug-only check to verify this, but that's just me. :)

On the other hand, replacing the old app info block with a new one works
too, and it doesn't corrupt the database if it's interrupted. Still, for
most apps, resizing is probably a better alternative. If you do replace the
existing app info block, be sure to free the old one.
--
Danny



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

Reply via email to