Greetings, I'm having a problem with FldGetTextPtr(). I only need to read the value of a field and store it in my database. This is the code I am using:
// Typical get object function, nothing special. NameFieldPtr = GetObjectPtr(NameField); ... checks for empty field ... FieldTextPtr = FldGetTextPtr(NameFieldPtr); error = DBStoreName(FieldTextPtr, Index); MemPtrUnlock(FieldTextPtr); The documentation for FldGetTextPtr() says: "Returns a locked pointer to the field's text string or NULL if the field is empty." So I can only assume that I need to unlock the memory when I'm done, right? With the MemPtrUnlock() function in place the code blows an error with the debug ROM. Without MemPtrUnlock() everything seems to work fine, but I'm suspicious because of the documentation saying that the function returns a locked pointer. Any insight would be greatly appreciated. Thanks, Matthew -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
