Chris Tutty a �crit : > From: "Luc Le Blanc" <[EMAIL PROTECTED]> > > A user sent me a PDB he created with my program some time ago but that > > he can't open anymore (although the database is found by > > SysCreateDataBaseList.). When I try to load it under POSE, the emulator > > reports a Can't open error, but the PDB nonetheless appears in the FileZ > > list view. Deleting it with FileZ and retrying eventually succeeds. Even > > when the PDB is finally loaded into POSE, it can still fail opening. I > > traced the problem: DmOpenDatabase returns 0x206 (dmErrCantOpen); my > > program then offers to delete it, but this fails too (how does FileZ do > > that?). Ideas? I put that 1.6 Kb PDB on: > > > PDBGo shows a header that looks basicly OK (CRID = AURI, > Type = Cave, Name = Fieux 2_Cave) with an AppInfoArea at > offset 224 and 18 data records, 17 at 56 bytes and the last at > 138 bytes. The category list is just binary data, but then you'd get > that if you had an AppInfoArea but didn't storing categories (the > PDB spec doesn't provide any way to identify this). Does this > sound about right?
Yes. As my program handles categories of databases instead of categories of records, I have to keep a special DB just to hold categories. That's the best solution I found to extend the record-centric principle of categories to a multi-database app. -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
