"Matt Disher (TiBook)" <[EMAIL PROTECTED]> wrote in message
news:79540@palm-dev-forum...
>
> Getting rid of a database after you've screwed it up ;-)
>
> I've got an app now with an occasional Free Handle Error that makes my
> database untouchable and un-deleteable.  (that is you even think about
> looking/touching it and it crashes with MemoryMgr.c, Line 4384 Free Handle
>
> Is there anyway to nuke it baring a hard reset ?
>
> I seem to remember a system call that I cannot find that told the OS to
> cleanup after me and force databases closed after I left a pointer
dangling.
>
> -MD

I used to have this problem when I would free a handle that was attached as
a database record. It is a very evil bug because the only way to fix it is
to hard reset the device. I mentioned this to some of the Palm OS engineers
at last year's PalmSource expo. After looking at me with an expression of
"Why in the world would you go and do that?" they confirmed that there's no
straightforward way to get around this.

I suppose you could write a program that would look directly into the data
manager's structures and repair the damage, but the effort probably isn't
worth it. Better to spend your time fixing the bug that caused this
situation.

Bob Whiteman
Senior Software Engineer
Pico Communications



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

Reply via email to