Miro Pomsar <[EMAIL PROTECTED]> wrote in message
news:113932@palm-dev-forum...
>
> Maybe there is a padding byte between the ttype and seconds,
> so the struct you are using, is treated by the compiler (in order to
> preserve 2byte aligment) like this:
>
> typedef struct FuelsDBType
> {
>  char ttype;
> ------- char padding;---------
>  UInt32 seconds;  // Timestamp
>  char tailno[9];
>  char amount[11];
> } FuelsDBType;

Well, I'll be darned!  I added the extra filler byte and it worked.  I
wonder why that didn't mess up the beginning of the tailno field when it
followed ttype?

Thank you very much!

--
Ray Marron




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to