Sorry, I meant to say StrLen instead of StrCopy in my last message...

so to fresh everyone on what code is messing up the CharPtr charRatio
variable

<code>

NewTxtRatioH = MemHandleNew(StrLen(charRatio) + 1);

</code>

Do I need to do a lock on the CharPtr charRatio before making the call to
MemHandleNew and StrLen?  And how do you Lock a variable?

Many thanks everyone for your help...
-clint

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Roberto
Amorim
Sent: Thursday, March 09, 2000 8:32 AM
To: Palm Developer Forum
Subject: Re: help with MemHandleNew


Did you lock the variable before StrCopy?

"Robert C. Thayer" wrote:
>
> Well before I make the call below to StrCopy, the value of of the CharPtr
> variable charRatio is 8.9...  After the StrCopy call, the same variable is
> either null, or garbage.
>
> Why?
>
 =========================================
 |  ___                                  |
 | /   \ Campanha contra e-mail com HTML |
 | \   / FITA ASCII                      |
 |  \ /                                  |
 |   X   ASCII RIBBON                    |
 |  / \  Against HTML e-mail             |
 | /   \                                 |
 =========================================

--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to