Those two bytes are the result of a fairly benign bug (somebody used "sizeof"
when they meant to use "offsetof", and some pointer math was off by 2 as a
result of that).
For the most part, it doesn't matter if those 2 bytes are there or not. A
properly written prc/pdb file parser should be completely oblivious to their
existance. However, when you beam an application, the wireline format of the
application is the same as that in the .prc file, and the Exchange Manager fully
expects those two bytes to be there, and fails if they aren't.
-- Keith Rollin
-- Palm OS Emulator engineer
"John E. Barham" <[EMAIL PROTECTED]> on 09/06/2000 12:53:56 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "John E. Barham" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: Undocumented unused bytes in PDB format?
Using the official "PDB Database format" doc I've more or less succeeded in
writing a PDB file parser, but have been tripped up by the apparently
undocumented presence of two null bytes following the record headers list.
I'd be tempted to suggest that these are the "placeholder bytes" but
according to the doc they are only present in the absence of any records.
Can someone confirm this?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/