Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!husc6!cfa!wyatt From: wyatt@cfa.harvard.EDU (Bill Wyatt) Newsgroups: comp.windows.x Subject: Re: XGetDefaults bug Message-ID: <613@cfa.cfa.harvard.EDU> Date: Mon, 6-Jul-87 10:02:36 EDT Article-I.D.: cfa.613 Posted: Mon Jul 6 10:02:36 1987 Date-Received: Tue, 7-Jul-87 02:56:30 EDT References: <1057@theory.cs.cmu.edu> Organization: Harvard-Smithsonian Ctr. for Astrophysics Lines: 20 > XGetDefaults has a known bug which is that it ignores its first > parameter every time it is called except the first. [...] Hasn't this come up before? Anyway, it's not a bug, but a feature. The entire .Xdefaults file is scanned and stored as a b-tree, and subsequent calls do not re-read the file, making accesses MUCH faster. I admit that sometimes you want to change the first argument and look for a different parameter, but that is really a different sort of function than what XGetDefaults was designed to perform. In any case, the resource management stuff in v11 will address the problem, as I understand it. -- Bill UUCP: {seismo|ihnp4}!harvard!cfa!wyatt Wyatt ARPA: wyatt@cfa.harvard.edu (or) wyatt%cfa@harvard.harvard.edu BITNET: wyatt@cfa2 SPAN: 17410::wyatt (this will change in June)