> ...snip...
> If I use ExgDmRead() to create the database, my last record in the new
database is corrupted.
> ...snip...
>    if (!bytesLeft)
>       *sizeP = 0; // by returning 0 in *sizeP, ExgDBRead () will stop
reading
> ...snip...

You're returning zero to tell ExgDBRead that this is the last chunk. You
should return zero to tell ExgDBRead that there are no more chunks (ie. that
the last chunk was read on the last call to the callback function). The
result of this bug should be a truncated final record.
--
Danny



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

Reply via email to