versha khar wrote: > i am running a network communication program , my NetLibReceive gives an > error , buffer isn't large enough for data. > but the data i get from the server is very small . > > str = MemPtrNew( sizeof( char ) * 500 );
If you are writing in the C (or C++) programming language, sizeof(char) always always always equals 1. So, you are doing this: str = MemPtrNew (1 * 500); This is probably not what you meant to do, as someone else already pointed out. - Logan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/