"Richard Burmeister" <[EMAIL PROTECTED]> wrote:
>> Char *phtxt, *ptxt;
>>
>> ptxt = "123456789";
>> ...
>
>I didn't bother to read the rest of your code after seeing this.  When you
>declare "Char * ptxt" you are telling the compiler to allocate a pointer to
>a Char.  You haven't allocated any space to store "123456789".  This is a C
>programming error and has nothing to do with Palm programming.  You should
>get a book on C programming to learn how to do this.  (And look at the
>Memory manager section of the Palm OS docs.)

There's nothing wrong with the code above.  He doesn't need
to allocate space for the string because it's static data.
At a glance, I don't see anything obviously wrong the code
that was posted.

-- 
    -M-                                              [EMAIL PROTECTED]

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