> From: Vital Cruvinel Ferreira [mailto:[EMAIL PROTECTED]]
> #pragma options align=packed
> typedef struct {
> UInt8 size8 : 8;
> UInt16 size16 : 16;
> UInt32 size32 : 32;
> } T;
> t.size16 = 5; // runtime error
That will never work. The Dragonball CPU cannot access 16-bit or larger
integers at an odd address, even though you have ordered the compiler to
try. If the structure *must* be laid out exactly like that for a good
reason, then you need to access the bytes of size16 and size32 individually.
Or you can move size8 to the end of the structure.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/