On Mon, 31 May 1999, Scott Johnson wrote:
>
> Jochen Hammer wrote:
> > When I try to load the pdb File to POSE, I get the error:
> > 'Could not install ...pdb, because Palm OS Error 521 occurred'
>
> First, you need to figure out what error code 521 means.
>
> When POSE says "Palm OS Error x" it means it is one of the error codes
> defined in the system header files. Doing the math should lead you to
> these lines:
>
> // in <SystemMgr.h>
> #define dmErrorClass 0x0200 // Data Manager
>
> // in <DataMgr.h>
> #define dmErrCorruptDatabase (dmErrorClass | 9)
>
> So dmErrCorruptDatabase (( 0x200|9 ) == 521) is the error. Now at least
> you can concentrate on how the pdb somehow got corrupted.
now this is a STUPID way to write that!
everyone knows that 0x0200 is 512 decimal, it would make more
sense to the "ordinary" programmer if it was defined as follows:
#define dmErrCorruptDatabase (dmErrorClass + 9)
not everyone is a "true" hacking programmer.. Obfuscation +1 for
the PalmOS development team!
being a #define, the compiler should determine the value
in the preprocess phase (<sarcasm>gcc does!</sarcasm> -
is that NOT the purpose of a preprocessor?
definately NOT a Microsoft programmer that wrote that
peice of code.. Microsoft is not capable of being so
humorous :P (and tricky!)
yet another "unclear" problem - but then again, the
PalmOS is too lovely to complain! :P
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11