> From: G. Laurent
>
> CharPtr chDateCodeSaisi = "", chTmp = "";
> ...
> StrPrintF(chDateCodeSaisi, "00");
>
You didn't allocate enough space to hold the "00". Initializing
chDateCodeSaisi to "" allocates 1 byte for '\0'. A CharPtr is a pointer (to
a Char), not an array of Chars. You have to allocate memory to hold the
array of Chars. E.g.,
CharPtr chDateCodeSaisi = MemPtrNew(3);
StrCopy(chDateCodeSaisi, "00");
...
MemPtrFree(chDateCodeSaisi);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/