> From: Rhoda BEROL
>
> CharPtr tmp="";
> tmp=MemPtrNew(StrLen(collabo.NomCollaborateur));
> tmp=StrToLower(tmp,"collabo.NomCollaborateur");
>

StrLen returns the length of a string, not including the terminating '\0'.
So you have to use
   tmp=MemPtrNew(StrLen(collabo.NomCollaborateur)+1);
or StrToLower() will write past the allocated memory.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to