"Remo" <[EMAIL PROTECTED]> wrote in message news:14445@palm-dev-forum...
> How can you create an app info block as a pointer in the first place?
> There is no DmNewPtr (only DmNewHandle) and MemPtrNew always allocates in
> the dynamic heap.

Good question. I don't think there's a public API to do this. Of course,
that doesn't prevent the system from creating databases with ptr-based app
info blocks. There is an API to determine whether a LocalID is ptr-based or
handle-based.

> On a similar topic: if I want to copy a database with a app info block (or
> sort info) set ( != 0), is it correct to asume that this value represents
> a localId of a memory block (on the same card)? Or is an application free
> to (legaly) store any 32 bit value in this field? How does the OS deal
> with a database having an app info block not representing a memory block
> during backup, beaming, deleting etc.?

I just looked at the code to beam a database and it definitely assumes that
the app info ID is a local ID on the same card. I wouldn't use the appInfoID
to store arbitrary data. Instead, create a 4-byte app info block and put the
data there.
--
Danny Epstein
OS Engineer, Palm Inc.


-- 
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