Hi, I have been able to run Michel Xhaard's spcaview (spcaClient) on VMware Linux pc but when I ran it on friendlyarm9 I get a segmentation fault. I changed the memory on the Vmware to the memory but it still run well. After reading about segmentation fault error, I suspect the only function in spcaClient that access memory. The function is below:
void resize (unsigned char *dst,unsigned char *src, int Wd,int Hd,int Ws,int Hs)
{ int rx,ry; int xscale,yscale; int x,y; Myrgb24 pixel; Myrgb24 *output =(Myrgb24*) dst ; Myrgb24 *input = (Myrgb24*) src ; xscale = (Ws 16; ry = y*yscale >> 16; memcpy(output++,&input[ADDRESSE((int)rx,(int)ry,Ws)],sizeof(Myrgb24)); } } }
I will be grateful for any helpful leads. Currently am using gdb to debug and making changes to the function to see if I get rid of the error.
Thanks.
--------------------------------------- Posted through