ExgDBRead stops when it thinks it's done. It knows how many records or resources there 
are, so it won't stop until it's created that many. It knows when the last record or 
resource is complete when the ReadProc returns 0.

It sounds like the data in the file stream is invalid. Try using HostControl APIs in 
your ReadProc callback to dump the bytes into a file on your desktop as they're 
grabbed out of the file stream during the ExgDBRead.

Your code looks okay. One thing to watch out for is that the ReadProc isn't allowed to 
return fewer bytes than requested unless there are no more.
-
Danny

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

Reply via email to