Re: SortInfo block question

2003-03-13 Thread Dave Carrigan
On Wed, 2003-03-12 at 09:06, Brad Figler wrote:

> // Assuming an open database
> 1.  Create memory handle using MemHandleNew()

You should use DmNewHandle() to create your new handle.

> 2.  Convert memory handle to localID via MemHandleToLocalID
> 3.  Pass localID to DmSetDatabaseInfo().

These steps are correct.

> I think this is correct, but I am a little concerned because doesn't
> MemHandleNew give me a handle to the dynamic heap?  

Your concern is well-founded. That's why you should use DmNewHandle().

-- 
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL


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


SortInfo block question

2003-03-12 Thread Brad Figler
I have a quick question about initially setting the sort info block for a
database.

Are these steps correct?

// Assuming an open database
1.  Create memory handle using MemHandleNew()
2.  Convert memory handle to localID via MemHandleToLocalID
3.  Pass localID to DmSetDatabaseInfo().

I think this is correct, but I am a little concerned because doesn't
MemHandleNew give me a handle to the dynamic heap?  Does passing in the
local ID copy the data to the data storage heap?   Or does it just set
chunks owner to the data storage heap?  Or am I completely wrong?

Thanks,

Brad



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