fldTextP = FldGetTextPtr( thisField);
and called delete for this pointer.
since the location still had the string correct , it was showing full string in debugger. Since it was deleted the POSE gave invalid chunk access.
thanks for your help
(setting the pointer to null after delete, could have been useful to catch the error in an early stage)
-jayan
Keith Rollin wrote:
At 12:37 PM +0530 11/4/02, Jayanarayanan M N wrote:
Sorry, cut paste error. Here is the code that crashes..In that case, the problem is that you are assigning the text pointer to "fldTextP", but trying to copy from "fldPtr".
thisField= FrmGetObjectPtr( thisForm , FrmGetObjectIndex( thisForm, controlID ));
fldTextP = FldGetTextPtr( thisField);
StrCopy ( strBig, fldPtr )
where controlID is the ID of the field
-- Keith
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
