Did you check for structure packing and possible alignment issues?
Glen Peters wrote:
I have a union of structures inside of a structure. This outer structure is
used as a "packet" to be sent via a NetLib socket. If I change the order of
the structures in the union, recompile and test I have problems. When I
debug using Palm OS Debugger I find that the app crashes during the closure
of the application in the assembly following the return from PilotMain. If I
restore the union to it's original state and order, it works again without
crashing. Any thoughts on how to fix this? It will also crash sometimes when
the structure containing the union is in scope and I call NetLibOpen. Pretty
wacky if you ask me.
Glen Peters
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/