🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #24303

XOpenDisplay

#24303
From: Mike Smith
Date: Thu, 21 Jan 1993 14:42
20 lines
942 bytes
Dear dudes,

I am a beginner into X programming, and am being frustrated by the following
three lines:

  Display *display;
  char *display_name = NULL;
  display=XOpenDisplay(display_name);

(of course I have #include <X11/Xlib.h> and #include <X11/Xutil.h> at the top).

It seems to work Ok on those rare occasions when I can get on the computer where
it is being executed from but otherwise I get a segmentation fault, when according
to the man pages I should wither get a Display structure from XOpenDisplay, or a
NULL.  I seem to be getting neither!

Cheers

Mike
Technical Details
Message-ID: <1993Jan21.144250.5872@newton.bioch.ox.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!uknet!comlab.ox.ac.uk!mikes

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!uknet!comlab.ox.ac.uk!mikes
From: mikes@bioch.ox.ac.uk (Mike Smith)
Newsgroups: comp.windows.x
Subject: XOpenDisplay
Message-ID: <1993Jan21.144250.5872@newton.bioch.ox.ac.uk>
Date: 21 Jan 93 14:42:50 GMT
Organization: Department of Biochemistry, University of Oxford
Lines: 20
Originator: mikes@newton.bioch