> FieldPtr debugfldP;
> CharPtr debug_text;
>
> //The field is a non-editable field
> //This Causes an error "MemoryMgr.c, Line: 4340, NULL handle" for some
> reason!!!
>
> debugfldP = GetObjectPtr(MainDebugFieldField);
> debug_text = FldGetTextPtr(debugfldP);
> if (debug_text != NULL){
> FldDelete(debugfldP, 0, StrLen(debug_text) + 1);
> }
>
>
>
>
> I checked, using the debugger, and...
> - debugfldP is not NULL
> - the strlen returns the exact length of the NULL terminated string
>
> I have another FldDelete for an editable field right before this and it
> works...
>
> What can be wrong here?
try using debug_text (instead of debugfldP) for the first parameter.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
- Problem in MemoryMgr.c...when performing a FldDelete James Tu
- Re: Problem in MemoryMgr.c...when performing a Fld... Richard Burmeister
- Re: Problem in MemoryMgr.c...when performing a Fld... krollin
- Re: Problem in MemoryMgr.c...when performing a Fld... Richard Burmeister
- Re: Problem in MemoryMgr.c...when performing a Fld... Philip Sheard
- Re: Problem in MemoryMgr.c...when performing a Fld... James Tu
- Re: Problem in MemoryMgr.c...when performing a Fld... Philip Sheard
- Re: Problem in MemoryMgr.c...when performing a Fld... krollin
- Re: Problem in MemoryMgr.c...when performing a Fld... James Tu
- Re: Problem in MemoryMgr.c...when performing a Fld... Philip Sheard
- Re: Problem in MemoryMgr.c...when performing a Fld... krollin
- Re: Problem in MemoryMgr.c...when performing a Fld... Ken Krugler
- Re: Problem in MemoryMgr.c...when performing a Fld... Philip Sheard
- Re: Problem in MemoryMgr.c...when performing a Fld... Paul Nevai
- Re: Problem in MemoryMgr.c...when performing a Fld... Philip Sheard
