I open the database as read only, and there are no MemHandleFree or
MemHandleUnlocks anywhere in the code. All I do is read a known good PDB
file. I never write to the file or delete any records. Basically the code
starts and I call DmFindDatabase and then DmOpenDatabase as I've shown. I'm
not doing anything else. Very strange something this simple doesn't work.


"Matt Hebley" <[EMAIL PROTECTED]> wrote in message
news:79133@palm-dev-forum...
>
> Yep, you have a MemHandleFree somewhere that is freeing a record in the
> database. You only get the exception when you try to access the database
> again. Check your code for calls to MemHandleFree - did you mean
> MemHandleUnlock?
>
> Matt
>
> At 03:52 PM 7/3/2002 -0800, you wrote:
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > The following code fails with a fatal exception:
> > > "MemoryMgr.c, Line 4384, Free handle"
> > >         hDb = DmOpenDatabase(0, dbId, dmModeReadOnly);
> > > The database CodesGeneric does indeed exist and the dbId is not zero.
> >
> >The database could have gotten corrupted during a previous access, if a
> >record got mistakenly freed without detaching it from the database.  Try
to
> >delete the db via DmDeleteDatabase and see if a similar error happens
then.
> >
> >-slj-
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to unsubscribe,
> >please see http://www.palmos.com/dev/tech/support/forums/
>
>
>



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

Reply via email to