From: "Gee Ng" <[EMAIL PROTECTED]>
> CharPtr tempText1;
> CharPtr tempText2;
> ...
> *********** Problem lies here ***********
> StrCopy (tempText1, text);
> StrNCopy (tempText2, text, strLength); // copy string that fits
> *********** Problem lies here ***********
I didn't see any place in your code where you allocate any space for the
strings you want to copy to tempText1 and tempText2. Did you do that
somewhere? All I see is you've allocated two pointers.
You either have to use an array (e.g., Char tempText1[ size ];) or allocate
some dynamic memory (e.g., CharPtr tempText1 = MemPtrNew( size ) ) to hold
a string.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/