Ben Combee a �crit : > At 10:21 AM 11/19/2004, you wrote: > >Ben Combee a �crit : > > > > > At 09:20 AM 11/19/2004, you wrote: > > > >If I do a DmGetRecord on record 0 and then insert a new record 0 with > > > >DmNewRecord, does my handle on the original record 0 become invalid or > > > >unreliable? > > > > > > No. Handles are maintained in a separate table and only become invalid > > > when freed. > > > >So locking existing record 0, creating a new record 0, writing it, > >freeing/releasing it, I can then safely release record 1 > >(old record 0)?
> Yes -- what happens to record 0 is independent of what happens to record 1. > However, you should never manually free a handle that's in a DB unless you > have unattached the handle from the DB first. The "free handle" error > you're seeing means that somewhere in your DB's list of handles, it's found > one that was freed, meaning it's internal representation is out of sync. In the end it turned out I was deleting a DB I had previously marked as dmHdrAttrRecyclable and then closed. Thus Palm OS had already deleted the DB when I was calling DmDeleteDatabase... -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
