Jan Slodicka wrote: > Sorry, I don't understand the question. It looks like you suggest > that POSE adds the readonly flag during the loading. That would > be a non-sense. The DB must have been readonly on the handheld > already.
> Or explain your question. I meant to say that this DB produces an error message upon being loaded in POSE. But on a second thought, it may be loaded right, the message would just being a warning, not a failure message. The rest of application errors must occur because I try to open it in read+write mode. Thanks. -- Luc Le Blanc > ----- Original Message ----- > From: "Luc Le Blanc" <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: "Palm Developer Forum" <palm-dev-forum@news.palmos.com> > Sent: Friday, April 29, 2005 12:06 PM > Subject: Re: DmOpenDatabase returns ErrCantOpen > But why can't POSE load it right? > -- > Luc Le Blanc > Jan Slodicka a Ãcrit : > > Readonly file. > > In case DmDeleteDatabase fails with dmErrCantOpen, you should > > read DB > > attribs, remove dmHdrAttrReadOnly and try again. (User > > confirmation may be appropriate.) > > Another similar problem is with the protected databases. > > ----- Original Message ----- > > From: "Luc Le Blanc" <[EMAIL PROTECTED]> > > Newsgroups: palm-dev-forum > > To: "Palm Developer Forum" <palm-dev-forum@news.palmos.com> > > Sent: Friday, April 29, 2005 4:57 AM > > Subject: DmOpenDatabase returns ErrCantOpen > > > > > 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: > > > http://www3.sympatico.ca/leblanc.luc/fieux_2_cave.pdb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/