put the '\x0' at the end of the buff1, it may like:
buff1[length] = 0;
length is the length of the data Receive(sock) get.

If the buff1 is not ended with '\x0', Don't use the string function like StrCat.

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 3:07 PM
Subject: read direcly from an unlocked memory chunk


> thank you tour,
> 
> we assigned null at end using StrCat(buff1,NULL);
> buff1 declared as MemPtr and this pointer resized dynamically.
> 
> it is giving memory error
> 
> thanks again waiting for u r reply  
>   
> > the string must be ended with NULL.
> > Receive(sock) can not mke sure of it
>  
> > > here is code 
> > >  MemPtr Rdata;
> > > Char *pc;
> > >   Rdata=Receive(sock);
> > >   pc=(Char*)Rdata;
> > >   pc=StrStr(pc,"\015\012\015\012");
> > > 
> > > --help would be appreciated
> > > 
> > > SVBN MURTHY
> > >   
> > >   
> > > 
> > > ____________________________________________________________________
> > > Get free email and a permanent address at http://www.netaddress.com/?N=1
> > > 
> > > -- 
> > > For information on using the Palm Developer Forums, or to unsubscribe, please 
>see http://www.palmos.com/dev/tech/support/forums/
> > > 
> > h?ߢ��?'�{��x-��ږ`޽�h��Ţ�������칻?ަW���z?��
> > Z�j,r��u?��!�˩�����+�k?
> 
> 
> ______________________________________________________
> 123India.com - India's Premier Portal 
> Get your Free Email Account at http://www.123india.com
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/
> 
h�)ߢ���*'�{��x-��ږ`޽�h��Ţ�������칻�&ަW���zm����
Z�j,r��u����!�˩�����+�k?

Reply via email to