Hi,

After reading some posts in this great forum, i got the prc creation working 
(almost) fine.

The read function is called with several values in order to return bytes to the caller. For example, i get this:

002730 creating file...
002730 requesting: 72
002740 requesting: 6
002740 requesting: 10
002740 requesting: 10
002750 requesting: 10
002750 requesting: 10
002750 requesting: 10
002750 requesting: 10
002760 requesting: 10
002760 requesting: 10
002760 requesting: 10
002760 requesting: 2
002760 requesting: 24
002770 requesting: 1024
002770 requesting: 140
002770 requesting: 249
002770 requesting: 10
002780 requesting: 1024
002780 requesting: 1024
002780 requesting: 1024
002780 requesting: 1024
002780 requesting: 32
002790 requesting: 872
002790 requesting: 32
002790 requesting: 376
002790 requesting: 1024
002800 requesting: 1024
002800 file created!

So, the maximum value to return is 1024.

But, if i create a buffer with 512 bytes and, when requested 1024 bytes, i return 512 bytes, i get a dmErrCorruptDatabase at the END of the process.

Shouldn't Palm OS be smart enough to handle a smaller receive instead of the 
full buffer?

But my most important question is: is 1024 the maximum size that Palm OS will ask us to handle?

thanks and best regards to all,

        guich

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

Reply via email to