I figured it out, DmResetRecordStates, Unlocks all locked records.
Apparently locking a handle to a record locks the record..which I did not
know, and calling MemUnlockHandle, then  DmResetRecordStates  Unlocks the
same chunk.

Jason
----- Original Message -----
From: "McMicken, Steven" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 3:24 PM
Subject: RE: unallocated chunk error


> Just a guess, but you are probably still unlocking something, that is
being
> unlocked by the system now that you are returning false from your handler.
> Is DmResetDatabase your function?  I cannot find it listed in the
reference.
>
> Regards,
>
> Steve
>
> -----Original Message-----
> From: Jason Simpkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 19, 2000 5:09 PM
> To: Palm Developer Forum
> Subject: Re: unallocated chunk error
>
>
> Second problem,
>
> Calling DmResetDatabase causes a Chunk Under Locked error,  why is this?
>
> Thanks,
> Jason
> ----- Original Message -----
> From: "Jason Simpkins" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 19, 2000 1:52 PM
> Subject: unallocated chunk error
>
>
> > For days now I have been fighting this stupid problem, "<name here> has
> just
> > read from an unallocated
> > chunk.".  This would happen when ever I switched forms from my main
"loop"
> > form.   I then spied a email on this list the other day that was about
the
> > same thing, sort'a.  It had to do with frmCloseEvent, and returning a
> true,
> > instead of a false, so that the system could handle unallocating of
memory
> > for the form.  Well "Va-la" I was returning true, and having used the
> > example event handler as well, had the same problem.   I changed it to a
> > false and the errors went away.  So...this is a big design
consideration,
> > and I just can't find any good documention on when/where should you
allow
> > the hardware/system/os and finally app handle the event?  and in what
> order?
> >
> > Thanks,
> > Jason
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to