Text handle of a field object must not be kept locked by your application.
So, if you are locking the text handle, then be sure to always unlock it,
otherwise field routines will shout on you.
Bozidar
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Prashanth
> Sent: Friday, June 22, 2001 1:55 PM
> To: Palm Developer Forum
> Subject: RE: field overlocking?!!!
>
>
> hey christian,
> no,you probably have mistaken me here.i have taken care of
> that.i'm locking
> it only twice so there is no chance of the lock count
> increasing.but i'm not
> unlocking it.i mean the overlocked handle error occurs only after 15 times
> of locking,which is not the case here,and morover the error message will
> be"CHUNK OVER LOCKED" and not "FIELD OVER LOCKED" for that
> case.do you know
> what to do at this case?thanks for the answer though.
> prashanth
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, June 22, 2001 6:04 PM
> To: Palm Developer Forum
> Subject: Re: field overlocking?!!!
>
>
> Prashanth,
>
> When working with fields, you can lock the handle to the field's text to
> manipulate it. When locking the handle, a reference count is increased to
> let different parts of your program lock the same handle at the same time.
> The catch is that you also need to unlock the handle, and that
> you can only
> lock the handle a fixed amount of times without unlocking it. If
> you lock it
> too many times without unlocking it the memory manager will tell you that
> you have overlocked the handle.
>
> --
> Christian
> Falch.net DeveloperStudio for Palm OS
> -"Developers' first choice for PDAs"
> <http://www.falch.net/>
>
>
> "Prashanth" <[EMAIL PROTECTED]> wrote in message
> news:53928@palm-dev-forum...
> >
> > hello!
> > if anyone is having one of the better days,please help me out here.
> > i'm basically working on records on text field.can anybody tell
> me what's
> > "field overlocked" error?!!it's not "chunk overlock" because if i unlock
> the
> > memory handle it's giving me a "chunk underlocked" error!!!
> > thanks a lot in advance!
> > prashanth
> >
> >
> >
>
>
>
> --
> 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/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/