Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.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: <10942@adobe.UUCP> Date: 10 Feb 91 00:57:55 GMT References: <1012@amix.commodore.com> <10931@adobe.UUCP> <1051@attc.UUCP> Sender: news@adobe.COM Organization: Adobe Systems Inc. Lines: 20 In article <1051@attc.UUCP> marbru@auto-trol.UUCP (Martin Brunecky) writes: >In article <10931@adobe.UUCP> asente@adobe.com (Paul Asente) writes: >>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 ... > > Mhmm. Everybody here talks about a STRUCTURE. But I want a VARIABLE. > Am I wrong using offset of ZERO and a base address equal to > the variable address ??? Basically, yes. XtFetchApplicationResources only supports fetching resources into a structure. If you have only one variable you can pass the address of the variable as the base and put 0 as the offset in the resource list, but otherwise you have to fetch them into a structure. If you can't live with this you can always fetch them into a structure and then copy the values into the individual variables. -paul asente asente@adobe.com ...decwrl!adobe!asente