Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Another question, succinctly stated. Message-ID: <9002281714.AA00411@expire.lcs.mit.edu> Date: 28 Feb 90 17:14:21 GMT References: <9002262153.AA12153@cacofonix.cs.uoregon.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 14 Simply stated, XMatchVisualInfo and XGetVisualInfo both give me a segmentation fault when I call them. Your program fragment works fine for me (against R4) when wrapped with appropriate declarations. It also works when linked against the OpenWindows Xlib (but pointed at an R4 server). I also tried using a random number for the class, and it "failed" correctly. Are you sure you're passing a reasonable value for visinfo? If there is not an appropriate visual it should just return 0 right? Yes, but if you're on a color screen using OpenWindows it should still be able to find PseudoColor.