🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37483

Re: Another question, succinctly stated.

#37483
From: Bob Scheifler
Date: Wed, 28 Feb 1990 17:14
14 lines
1087 bytes
    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.
Technical Details
Message-ID: <9002281714.AA00411@expire.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
References: <9002262153.AA12153@cacofonix.cs.uoregon.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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