"David Chevalier" <[EMAIL PROTECTED]> wrote in message
news:54872@palm-dev-forum...
> Have there been any bug reports for ExgDBRead?
One issue that I'm aware of is that ExgDBRead allocates all the records or
resources before reading their contents via the ReadProc. If the ReadProc is
destructively reading from a file stream, it will still require twice as
much room as it'll end up needing when it's done. This was reported by Neil
Rhodes. I'm not aware of any other open bugs in ExgDBRead.
> This is regarding corrupted pdb's and prc's when translating them from PC
> file stream to a palm via ExgDBRead.
> I noticed that my pdb's records were getting corrupted, if and only if:
> 1) a record was greater than 1024 bytes
> and
> 2) my PrvReadProc routine returned less than the requested sizeP number of
> bytes for that record
1024 just happens to be the size of the buffer allocated by ExgDBRead. I
don't think this is a coincidence. :) I'll try to reproduce the bug and get
back to you. Can you send me (privately) the pdb you're using and the code,
preferably as a tiny demo app?
> My fix for this was to busy-wait inside PrvReadProc until I had
accumulated
> the number of bytes requested in sizeP by ExgDBRead...
Good idea.
--
danny.epstein
@
corp.palm.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/