From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a56850a207d73af7,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-17 00:10:15 PST Path: bga.com!news.sprintlink.net!news.interserv.net!usenet From: jpapke@interserv.com Newsgroups: comp.unix.osf.osf1 Subject: Problems with Motif XmField Date: 17 Mar 1995 07:58:15 GMT Organization: InterServ News Service Message-ID: <3kbfen$kjb@data.interserv.net> NNTP-Posting-Host: stk4_p24.sprint.dialup.net X-Newsreader: AIR News 3.X (SPRY, Inc.) 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