> > I think the problem is that you are making the field text pointers
> > point to empty strings, rather than setting them to NULL.
>
> What is your basis for this claim?

guesswork.

> Why should NOT setting a text field to NULL
> result in a "NULL handle" error message?

I take it that you mean setting it to an empty string.
well it strikes me that Palm OS prefers the NULL pointer approach.

> > if(debugfldH){
> >     FldSetTextHandle(debugfldP, NULL);
> >     MemHandleUnlock(debugfldH);
> > }
>
> The disposition of the handle should be in question.  You might use
> MemHandleFree if the block were allocated dynamically. You might
DmReleaseRecord
> if the handle came from a database record.  I'm not sure when one would
ever
> call MemHandleUnlock.

right. I meant MemHandleFree. and right again, you might not want to free
it.



-- 
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