> do{
> n1[1]=fone[i];
> n2[1]=fone[i+1];
> dig=ReturnDecByChar(n2[1], n1[1]);
> PtrPh=MemPtrNew(StrLen(phone) + StrLen(dig) +
> 1); //The error ocurrs right here...
> StrCopy(PtrPh, phone);
> StrCat(PtrPh, dig);
> phone=PtrPh;
> i=i+2;
> }
seems like you are allocating lots of MemPtrs but never free them... i'm not
sure if that can cause a bus error though.
markus dresch (www.palmside.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/