Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!sdd.hp.com!decwrl!adobe!asente From: asente@adobe.com (Paul Asente) Newsgroups: comp.windows.x Subject: Re: X11R4: libXt GetResources(): Possible bug. Message-ID: <10931@adobe.UUCP> Date: 9 Feb 91 06:43:39 GMT References: <1012@amix.commodore.com> Sender: news@adobe.COM Organization: Adobe Systems Inc. Lines: 11 The bug here lies with applications that store the addresses of variables in the resource list and pass NULL as a base. All application resources should be fetched into a structure; the offsets in the resource list should be the offsets of the fields in the structure and the base should be the address of a declared instance of the structure. Actually storing addresses in the resource list is, as you have discovered, horribly unportable. There is no guarantee even that the offset field will be large enough to hold an address. -paul asente asente@adobe.com ...decwrl!adobe!asente