Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Problems with Motif XmField
@ 1995-03-17  7:58 jpapke
  0 siblings, 0 replies; only message in thread
From: jpapke @ 1995-03-17  7:58 UTC (permalink / raw)


I discovered access alignment problems when using XmField, XmPartOffset and XmResolvePartOffsets
when creating user-defined widgets. They don't account for the alignment of structs enforced by
OSF/1 C compiler, which can cause padding between widget record-part structs.

Is this a well known problem or am I the first to notice?

The problem can be avoided by making sure all widget instance record-part structs contain at least one pointer,
(add dummy pointer if needed) thus avoiding padding between the sub-structs of the widget.

thanks



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-17  7:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-17  7:58 Problems with Motif XmField jpapke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox