The problem is I hava a code here that works when
compiling with CodeWarrior but not works when compiling
with GCC. With GCC occurrs one "bus error" in the
emulator and in the palm occurrs a Fatal Exception. I
think that the problem is in this function:
static char *ReturnFormatFone(char *fone)
{
char *phone;
char n1[1];
char n2[1];
char *PtrPh;
char *dig;
int i;
phone=ReturnTextInvert(ReturnDDD());
i=0;
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;
}
while (i<=StrLen(fone)-2);
return phone;
}
Any of you knows a solution for this?! Remeber that this
error occurs just when compiling with GCC. With
CodeWarrior this application works normally.
Thanks,
Davi Carvalho
> > Any of you know how to convert a code warrior project
to
> > a gcc one?
>
> if the codewarrior project does not use pilrc resources
, you have to
> recreate them or use some third party tool (for example
falch.net) to import
> the cw resources. you don't have to change the code, on
ly if there's asm
> code or #pragmas. if it is a big project, you may also
have to split the
> code into sections (segments).
>
> markus dresch (www.palmside.com)
>
>
>
> --
> For information on using the Palm Developer Forums, or
to unsubscribe, please see http://www.palmos.com/dev/supp
ort/forums/
>
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - � gr�tis!
http://antipopup.uol.com.br/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/