On Fri, 26 Mar 2004 10:00:46 +0100, Wojtek wrote: > Hi. > > My app runs fine - till HotSync. > Every launch after HotSync gives "Records left locked in closed > unprotected DB" when I call DmCloseDatabase. > I tried to check all records in this DB for dmRecAttrBusy just before > closing - all records are clear (don't have this attribute set) I am > wondering what may be the cause. Can it be AppInfoBlock? > I have AppInfoBlock (my own structure) which is read at HotSync. > > Apart from this error I get "Chunk over-locked..." after 15 runs starting > from HotSync. I am not sure what is the corelation between these errors. > > Any directions? > > Wojtek
what are you doing during the hotsync? is your conduit modifying the database records or is your app handling ( maybe even accidently) hotsync launchcodes ? Do you possibly lock down a record with MemHandleLock and don't do a MemHandleUnlock? do you unlock your appInfoBlock !? maybe just comment out the section which deals with that, and see if this disappears. MemHandleLock() has an internal counter which gets incremented whenever you call it. MemHandleUnlock() decrements this counter. if you lock the handle more than 15 times without Unlocking it you will get the chunk overlocked error. regards, Sebastian -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
