Hy all.

Actually, my app receives from the server a string that may have from
10bytes to something about 10 kb, using NetlibReceive.

The string received from the server contain records that will have something
about 400 bytes.

The server sends all the string at a time and the palm app that has a buffer
of 2kb waits for a complete record. When this complete record arrive from
server, it is saved on a database and the memory occupied by it was freed.

My question is:

1) Is this the best way of work with large memory pointers on Palm? This
memory is allocated for all the time that process run (about 4 minutes), and
the emulator alert me that the memory should not be allocated for all this
time. So, if this isn't the correct way, which one is?

2) I want to implement compression tecniques on my app, but, i know that
compress all the string at a time is better that compressing it pice by
pice. So, i think that i need to allocate a buffer that will contain all
compressed data received from server, pass this buffer to the ZLib library
and get the uncompressed data on another buffer. But, HOW CAN I ALLOCATE
THIS AMOUNT OF MEMORY, mainly on a device that have only 2Mb, like Palm Zire
and Palm M100???


Any explanation, example and/or code will be appreciable.

Thanks all!!!

R�gis Daniel de Oliveira



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to