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?
Thanks for your time.

-- 

-James

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