you need an extra byte for the NULL character as well. Again a question not
exactly Palm related but probably a general programming question, but....
let's not start that thread again. :-)

CharPtr tmp = NULL;
tmp = MemPtrNew(StrLen("collabo.NomCollaborateur") + 1);
tmp=StrToLower(tmp,"collabo.NomCollaborateur");

-vc

----- Original Message -----
From: "Rhoda BEROL" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 1:15 PM
Subject: Re: StrToLower


> > Second, what is tmp?
>
> CharPtr tmp="";
> tmp=MemPtrNew(StrLen(collabo.NomCollaborateur));
> tmp=StrToLower(tmp,"collabo.NomCollaborateur");
>
> Error:
> >
> > "Projet (1.0) just wrote to memory location 0x0001B61A, which is in the
> > storage heap. In order to protect the integrity of the user's data, such
> > direct access is not allowed. Instead, applications should use special
> Palm
> > OS functions for this purpose."
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
>


-- 
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