I never quite figured out why my code wasn't working, but I rewrote it so
that I only called DmWrite once for the whole block and this time it worked
fine. That was pretty braindead the way I was doing it, though I'm still not
sure why it failed in the way it did. Anyway, thanks for the suggestions.

I still have the nagging question that I ended my last email with, though:

> On a similar note I'd like to ask: is there something about the AppInfo
> block that makes these alignment issues especially tricky?  I notice that
> the SDK sample applications all have reserved unused members in their
> AppInfo structures that have comments like "// from the compiler word
> aligning things [sic]".  I also found that an alignment problem I had with
> two UInt8 members in my AppInfo structure was fixed when I changed them to
> UInt16.  Does everything have to fall on a two-byte boundary?  I haven't
> found official documentation about this issue, but I'm guessing that once
> again it has something to do with me needing to deepen my understanding of
> C.

Is there something I'm missing here?

David Beers


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

Reply via email to