You need to pad your single byte data to even bytes so that the structs
after them can be addressed. The Palm can only address structs on even byte
boundaries.
-Ken
> ----------
> From: Tim Astle[SMTP:[EMAIL PROTECTED]]
> Reply To: Palm Developer Forum
> Sent: Monday, April 17, 2000 2:08 PM
> To: Palm Developer Forum
> Subject: Re: Weird.....
>
> My array was the last entry in the struct. It turns out that a Byte /
> Boolean that I added to the first of the struct caused some problems with
> my
> double types.
>
> I believe I need to find out the correct procedure to pack a Byte type
> into
> a structure.
>
> --
>
> Tim Astle
>
>
>
>
> Luca <[EMAIL PROTECTED]> wrote in message news:8556@palm-dev-forum...
> >
> > When you're packing data such that your packed record contains an array
> of
> > length 1 and you plan on writing beyond its limits, make sure the array
> is
> > at the last entry in the struct. If not, you'll end up writing over
> part
> of
> > your array since all the data is continuous and space was only reserved
> for
> > the first entry of the array!
> >
> >
> >
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html