Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jpapke@interserv.com
Subject: Problems with Motif XmField
Date: 17 Mar 1995 07:58:15 GMT	[thread overview]
Message-ID: <3kbfen$kjb@data.interserv.net> (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



                 reply	other threads:[~1995-03-17  7:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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