--- SU DUY TRINH wrote: > CharPtr suiIndex=""; > StrIToA(suiIndex,uiIndex);
This can't work. You declared suiIndex to be a pointer to the constant string "", which contains 1 byte. Then you try to convert uiIndex to a string and save the result at that location. Use this instead: Char suiIndex[NUMBER_OF_DIGITS_IN_UIINDEX+1]; StrIToA(suiIndex, uiIndex); Or, use this: CharPtr suiIndex = MemPtrNew(NUMBER_OF_DIGITS_IN_UIINDEX+1); StrIToA(suiIndex, uiIndex); // and when you are done with it: MemPtrFree(suiIndex); __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
