Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: XGetWindowProperty Message-ID: <2815@gazette.bcm.tmc.edu> Date: 20 Nov 90 18:34:54 GMT References: <9011162349.AA14141@andreas.wr.usgs.gov> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 19 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu In article <9011162349.AA14141@andreas.wr.usgs.gov>, gjw@ANDREAS.WR.USGS.GOV (Gregory J. Woodhouse) writes: |> I get nervous about "magic" values. Is there some expression, possibly in- |> volving sizeof, that I can pass as the 5th argument of XGetWindowProperty |> instead of 8192? For that matter, is that number even right? |> 8192 is NOT a magic number. It specifies the # of 32 bit quantities to be retrieved. This will vary completely from application to application. If you are using 8192 indiscriminately, then you will probably be having mucho core dumps. For instance, to retrieve 56 longs from a property, you would use 56 as the 5th argument. To retrieve 68 shorts from a property, you would use 34 as the 5th argument. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bmc.tmc.edu (713) 798-3776