This isn't a C/C++ error, it a programmer's error (and yes, its a simple
fix).  TEST doesn't point to a valid memory range.  Assign it enough memory
to hold flpNumberToConvert plus 1 for NULL.

----- Original Message -----
From: "R�gis Daniel de Oliveira" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 9:03 AM
Subject: StrCopy Problem. Why?


> Hy All.
>
> I have a function that receives a string and should copy this string to
> another one. It compiles well, but cause a memory error (BUS ERROR) when
the
> app run. I think that the error is simple and is something about  C/C++
> sintax too. Can anybody help-me, please!!!
>
> Thanks all!
>
> The value *flpNumberToConvert
>
>
> void doubleToStr (Char *flpNumberToConvert)
> {
> Char *TEST;
> StrCopy(TEST,flpNumberToConvert);  //<<<<ERROR
> ...
> }
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



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

Reply via email to