Hi Danny,

The identical code has no unbalanced lock/unlocks when used on an
independent database.  Only when it's passed its own database does it
get the underlock error.  And in that case, I've tried changing the
number of locks and unlocks, and it makes no difference.

I've seen this problem for years, going back to OS 3.1.

It seems that no amount of locking or unlocking saves the app if it
has opened its own database.

If anyone out there has created code that reads from its own database
and doesn't have that problem, please email it to me.

My one line of hope left is I'm going to see what happens if I don't
lock any of the code records, but just the extra data records, on the
hope that maybe the PalmOS only locks records it's actively running
code from.

- jeff

--- In [EMAIL PROTECTED], "Danny Wong" <[EMAIL PROTECTED]> wrote:
> HI Jeff,
> 
> this means that you have overlocked a record or resource and then
> you try to unlock it again.
> 
> Look over your code and double check make sure the combo lock/unlock
> are there.
> 
> regards
> 
> danny
> www.toysoft.ca
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Jeff
> > Diamond
> > Sent: Tuesday, March 25, 2003 12:01 PM
> > To: Palm Developer Forum
> > Subject: Opening the current App database causing crash on exit..
> >
> >
> > I have a program that reads data from a PRC database.  It works fine
> > when that PRC database is external to itself.
> > But when I try to open and read from my current (running) PRC,
> > everything works fine until I exit.  I then get a fatal memory manager
> > error saying only "Chunk Underlocked, but with no additional info".
> >
> > In debugging this with the debug console, it appears that my App has
> > fully exited by this point, and the error is in the system.
> > Interestingly enough, it MAKES NO DIFFERENCE in my app if I choose to
> > not close the database at all before exiting, or even if I close
it twice!
> >
> > I assume there is some logical issue with the fact that I've opened my
> > App for reading, and so has the OS.
> > Is there a way to make this work?
> >
> > Thoughts much appreciated!
> > - Jeff Diamond
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to
> > unsubscribe, please see http://www.palmos.com/dev/support/forums/
> >
> >
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/


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

Reply via email to