I've read some of the previous posts concerning ExgDBRead(), which I
would like to use to read compressed data from a stream, decompress
it, and feed it into a DB.
The code appears to work correctly, no errors returned, but the
resulting database is corrupt right at the first record. The data's
good: if I accumulate the same data I'm passing back to the ReadProc
in a big buffer and call DmCreateDatabaseFromImage() on the buffer
(assuming my data's <64KB), then things are fine.
Some things I've noted:
The docs say it knows when to stop calling my ReadProc by the info in
the header, but I get called one more time after all the data's been
passed back. I assume that I just immediately set (*sizeP = 0) and
return errNone, but it has me worried because it seems inconsistent
with the doc.
Also, the docs indicate the cardNo is _passed_back_ to the caller of
ExgDBRead(), but the param is passed by value, which appears to
prevent that.
Any suggestions appreciated, or if there are any common mis-uses of
the call that I might be making, that would help too. I'm on POSE
with the IIIc ROM running 3.5.0, writing code with CW/R6.
Thanks,
Jim
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/