It's all that stuff in the upper left pane of the debugger window.

-- Keith






James Tu <[EMAIL PROTECTED]> on 12/15/2000 03:04:28 AM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

Sent by:  James Tu <[EMAIL PROTECTED]>


To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/US/PALM)
Subject:  Re: Problem in MemoryMgr.c...when performing a FldDelete



Keith:

How do I use CW to generate this stackcrawl/backtrace?


[EMAIL PROTECTED] wrote:
>
> > 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?  Why should NOT setting a text field to
NULL
> result in a "NULL handle" error message?
>
> AFAIK, James' approach should be OK.  I'd be interested in knowing what he
finds
> out by using a debugger and generating a stackcrawl/backtrace of the functions
> between the call to FldDelete and the function generating the error message.
>
> > 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.
>
> -- Keith
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/

--
" This statement is false "

I
n
t e r
    a             James Tu
    c     T           n
    t i v e           o
          l e c       i
              o   c a t
        g r a m   i
          o     m u n
        r
        P

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