Below are several letters from March 30, 1999 concerning MacPac2 corrupting the
creation date etc.  I have now run into this problem with a user.  They have sent me
the database and indeed the creation date, the backup date, and the modification date
are all changed to 2003.  The modification number is also reduced.  These changes
prevent the database from being installed.  Is this bug in MacPac2 being fixed?

Thanks.

Keith Wolcott


Subject:
          Re: Corrupt DB with Mac Desktop 2.1?
     Date:
          Tue, 30 Mar 1999 14:17:10 -0800
     From:
          "Chris Antos" <[EMAIL PROTECTED]>
 Reply-To:
          [EMAIL PROTECTED]
       To:
          <[EMAIL PROTECTED]>

there appears to be a bug in MacPak 2 that can corrupt databases.  i've seen
reports of this from several devs on totally unrelated apps, and also from
several users.  it appears to be relatively rare, and i've sent info to Palm
about it, including a sample corrupted database.  from examining it in a hex
editor, all the data is intact, but several bogus bits got set in the record
headers, and the appinfo block was also corrupted.  after repairing these by
hand, it worked for a while, until MacPak corrupted it again.  Palm has been
essentially unresponsive about this.  i don't know if they are even
investigating it or are taking it seriously.
Christopher Hunt wrote:

> ...then I discovered that the modification date of the db is less than the
> creation date. I'm wondering if HotSync rejects this scenario. :-|
>
> I further noticed that the creation date is for 2003 and not 1999! I'm
> wondering if HotSync forgets that years start at 1904 when it comes to saving a
> .pdb and updating its header.

Yep, its the dates. The following snippet of code completely fixes the problem. I
strongly suspect that the MacPac does not consider 1904 as a start date when
HotSync writes db header information.

Chris,

Rest assured that we are indeed taking it seriously.  I am investigating the
problem from a development support perspective.  As soon as I have more
information on the problem, I'll post it to this list.

Regards,

Ryan Robertson
Palm Development Support




Reply via email to