Article View: comp.windows.x
Article #23829Re: X11R4 18 Patches + Motif 1.1.1
From: Ralph Swick
Date: Tue, 18 Jun 1991 14:26
Date: Tue, 18 Jun 1991 14:26
20 lines
1539 bytes
1539 bytes
A simple example of the kind of problem we have been having is illustrated
by the memo example on Page 42 of Douglas Young's book on X programming.
This example works fine under the older versions of X11/Motif. Under the
new versions we find that the program dumps core if the environment
variable DISPLAY is not set, and specifying "-display foo:0" does not
help!
The example calls XtOpenDisplay specifying display_name as the empty
string (""). This causes XtOpenDisplay to ignore any -display option
in the command line (your symptom #2) and passes the empty string to
Xlib. The semantics of specifying the empty string to XOpenDisplay
are unspecified, but the usual behavior is to treat this as equivalent
to passing a NULL pointer; i.e. evaluate the DISPLAY envvar. If
DISPLAY is undefined, XOpenDisplay and XtOpenDisplay return NULL and
the example program does not check for this case, resulting in your
symptom #1.
I've no idea how this could have worked any differently prior to
installing the patches.
Technical Details
Message-ID:
<9106181426.AA23599@lyre.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-linesReferences:
<1991Jun17.161043.5660@Citicorp.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: swick@athena.mit.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: X11R4 18 Patches + Motif 1.1.1 Message-ID: <9106181426.AA23599@lyre.MIT.EDU> Date: 18 Jun 91 14:26:13 GMT References: <1991Jun17.161043.5660@Citicorp.COM> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20