> Char *fldTextPos1; > > [chop] > > // Convert the new value to a CharPtr and set the text field > StrIToA(fldTextPos1,tempNum);
StrIToA expects already allocated space. You have to either say: Char *fldTextPos1 = MemPtrNew(maxStrIToALen); StrIToA(fldTextPos1, tempNum); // Use fldTextPos1 MemPtrFree(fldTextPos1); or: Char fldTextPos1[maxStrIToALen]; StrIToA(fldTextPos1, tempNum); // Use fldTextPos1 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
