the string must be ended with NULL.
Receive(sock) can not mke sure of it

----- Original Message ----- 
From: S.V.BADARI NARAYANA MURTHY <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 6:45 PM
Subject: read direcly from an unlocked memory chunk


> Hai all
> 
> 
> I want to extract Substring from a String.
> 
> Error Message
> <app name> has just read direcly from an unlocked memory chunk.
> 
> description:
> Receive(sock) function returns MemPtr, stored in Rdata declared as MemPtr.
> so, i use StrStr function. .
> 
> 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���zm����
Z�j,r��u����!�˩�����+�k?

Reply via email to