HDTenEightyP/NetNews huggingface dataset:
From: rmbult01@starbase.spd.louisville.edu (Robert M. Bultman)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Reading text from Athena (Xaw) asciiTextWidgets ?
Date: 13 Sep 92 08:49:32 GMT
Distribution: fj
Organization: University of Louisville

Date: 12 Sep 92 14:23:43 GMT
Message-Id: <rmbult01.716307823@starbase.spd.louisville.edu>
Newsgroups: comp.windows.x

In <9SEP199213355388@portal.lasc.lockheed.com> le01156@portal.lasc.lockheed.com (Jeff Sheffel @ x2016) writes:

>I have unsuccessfully tried to read (retrieve) the user
>modified text from an Athena asciiTextWidget.  I looked
>at other example programs (xless and xdbx) to see how it
>was done.  Here is a section of (pseudo) code:

>Widget	textSrcWidget, asciiTextWidget1;
>XawTextBlock	buffer;
>char	*userInput;

>	textSrcWidget = XawTextGetSource( asciiTextWidget1 );
>	XawTextSourceRead( textSrcWidget, start, &buffer, length );
>	xtrncpy( userInput, buffer.ptr, buffer.length );

>When I tried this, buffer.ptr = '\0' and buffer.length
>was zero.  The standard X documentation is weak in the area
>Athena widget usage and particularly in the explanation of
>"text sources and sinks" which appear to be used in the
>above example.

>How is text read from the Athena asciiTextWidget?

>Jeff Sheffel		le01156@portal.lasc.lockheed.com

I did the following.  (I am not sure if this is "legal", so use with
caution.)  This is for "small" strings, not files.

char theString[THESTRINGLENGTH];
Widget theTextWidget;

XtVaCreateManagedWidget(
	...
	XtNstring, theString,
	XtNlength, THESTRINGLENGTH,
	XtNusrStringInPlace, True,
	...
	);

Then just access the string as any other string.  According to the
O'Reilly reference, XtNlength is the length of the buffer, not the
string itself.  The useStringInPlace resource tells the source to
edit the string in place rather than in chunks.  Note that you should
only use this method to read the string, and probably only after some
event (like closing a popup or something where the the widget
appeared).  If you want to set the string to something, use
XtVaSetValues.

(I made a similar inquiry earlier, and got 1 or two replies.  I do
not consider myself to be a crack X programmer, and would appreciate
someone who is really in the know to verify what I have done.  It 
seems to work, and I am using it now.  Thanks.)

I hope this helps.  If you have further questions, e-mail me.


-rob

-- 
Robert M. Bultman                              |
Speed Scientific School                        |
University of Louisville                       |
Internet: rmbult01@starbase.spd.louisville.edu |
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Xlib - C Language X Interface, where?
Date: 11 Sep 92 18:40:20 GMT
Distribution: fj
Organization: CS Department, Dortmund University, Germany

Date: 11 Sep 92 07:58:30 GMT
Message-Id: <18pjj6INN70u@fbi-news.Informatik.Uni-Dortmund.DE>
Newsgroups: comp.windows.x

In article <1992Sep11.010408.17625@mailhost.ocs.mq.edu.au>,
s8923098@macnab.mqcs.mq.oz.au (Josef WIDJAJA) writes:
|> In article <18n56rINN2df@fbi-news.Informatik.Uni-Dortmund.DE>
|> klute@heike.informatik.uni-dortmund.de (Rainer Klute) writes:
|> |
|> |Two quotes from "Xlib - C Language X Interface, MIT X Consortium
|> Standard,
|> |X Version 11, Release 5" should answer your questions:
|> 
|> Can anyone tell me where I can get this by anon. ftp? I read somwhere
|> that this should be available in the standard X release from MIT.

The current X11 release including all the documentation is available in an
unpacked form at export.lcs.mit.edu. Look into /pub/R5untarred/mit/doc and
its subdirectories! Within Xlib you will find the document I quoted from.

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: dduke@real.jccbi.gov ("Duane Duke, Training Systems, Systems Analyst")
Newsgroups: fj.mail-lists.x-window
Subject: Unsubscribe
Date: 8 Sep 92 13:07:23 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 08 Sep 1992 07:32:56 EDT
Message-Id: <009604D1.5D2E74C0.5231@real.jccbi.gov>

Please unsubscribe me.  Thank you.
From: mmm@techsrc.cetia.fr (Mark Martin)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Transparent overlay client?
Date: 10 Sep 92 21:59:29 GMT
Distribution: fj
Organization: CETIA, France

Date: 10 Sep 92 13:04:51 GMT
Message-Id: <1992Sep10.130451.6338@cetia.fr>
Newsgroups: comp.windows.x

In article <1992Sep9.130526.28033@msdrl.com> ajs@msdrl.com (Anthony Starks) writes:
> I'm looking for a X client that functions as a full-page transparent ruler.
> Any takers?

I love a challenge.  This may not be exactly what you wanted, but you
were a bit brief 8-)   The following shell script pops up a vertical ruler
with ticks marks.  You can move it like any window.  It has settable
linewidth tick spacing and can show several tick intervals.

Hope you like it.
--
Mark M Martin			mmm@cetia.fr
Cetia, Toulon, France		inria!cetia!mmm
--

#!/bin/sh
# Create a vertical transparent ruler. 10sep1992
# copyright 1992 Mark M Martin. Cetia. France. 
# Anyone may use, copy, distribute, sell this script provided the above
# copyright is kept in it.  No implied warranty or fitness for purpose.

# --- some default sizes. The corner is an handle making it easier to
# --- grip the ruler if no window manager title bar.

height=700 width=20 corner=15 linewidth=2

while	case $1 in
	-h|-height)	shift
			height=$1 ;;
	-w|-width)	shift
			width=$1 ;;
	-l|-linewidth)	shift
			linewidth=$1 ;;
	-t|-ticks)	while	case $2 in
				[0-9]*)	allticks="$allticks $2" ;;
				*)	break ;;
				esac
			do	shift
			done ;;
	'')		break ;;
	*)		echo "usage: $0 -h height -w width -l linewidth -t tickinterval..."
			exit 1 ;;
	esac
do	shift
done

if [ -z "$allticks" ]
then	allticks="50 25"
fi

tmp=/tmp/rule$$
trap 'rm -f $tmp;exit' 1 2 3 15

awk '
BEGIN{	height = '"$height"'; width = '"$width"'; corner = '"$corner"'
	linewidth = '"$linewidth"'; maxlen = width
	numticks = split("'"$allticks"'",ticks," ")
	t = maxlen
	for(i = 1;i<=numticks;i++){
		ticklength[i] = int(t)
		t = t*.75
	}
	height += linewidth
	for(l = -corner;l<height;l++){
		tl = linewidth;
		if(l<0)tl = corner;
		else if(l==0)tl = 0;
		else
		for(i = 1;i<=numticks;i++)
			if((l%ticks[i])<linewidth)
				if(tl<ticklength[i])tl = ticklength[i]
		for(w = 0;w<tl;w++)printf("#");
		for(;w<maxlen;w++)printf("-");
		printf("\n");
	}
}
' </dev/null |
atobm >$tmp

# --- there are weird effects if the geometry isnt bigger than actual bitmap

height=`expr $height + $corner + 10`
width=`expr $width + 10`

xbiff	-xrm "*name:ruler" \
	-xrm "ruler.Geometry:${width}x$height-1+1" \
	-xrm "ruler*shapeWindow:true" \
	-xrm "ruler*flip:false" \
	-xrm "ruler*fullPixmap:$tmp" \
	-xrm "ruler*fullPixmapMask:$tmp" \
	-xrm "ruler*emptyPixmap:$tmp" \
	-xrm "ruler*emptyPixmapMask:$tmp" \
	-xrm "ruler*file:/dev/null" \
	-xrm "ruler*update:9999999" &

# --- give it time to read file then remove it.

(	sleep 60
	rm -f $tmp
) &
From: jruiz@wm.estec.esa.nl (Jose Ruiz -Student-)
Newsgroups: fj.mail-lists.x-window
Subject: Xview graphics
Date: 8 Sep 92 21:23:09 GMT
Distribution: fj
Organization: ESA/Estec/WMS, Noordwijk, The Netherlands

Date: 8 Sep 92 16:10:18 GMT
Message-Id: <Bu9ox7.5vL@wm.estec.esa.nl>
Newsgroups: comp.windows.x

I'd like to integrate dynamic graphics in a graphic interface designed with DevGuide 3.0 (on Xview). I've tried using widgets for XtInstricts but I cannot make it work. I think it's because a conflict between Xview and XtInstricts. 
Has anyone public domain software to integrate graphics in Xview?
 
-Thanks
From: sinan@Mtesol.boeing.com (Sinan Karasu)
Newsgroups: fj.mail-lists.x-window
Subject: Re: DVI files.
Date: 8 Sep 92 23:06:48 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Tue, 8 Sep 92 13:18:09 PDT
Message-Id: <9209082018.AA08517@mtesol>


TeX,LaTeX are Donald Knuths ( Yes the same one that wrote "Art of Computer
Programming") typesetting package. Which converts statements like

 $\int_{-\infty}^{\infty} f(x) dx = 3$

 to a mathematical formula like 

 ^  8
 |
 |     f(x)dx=3
 j -8 

 here 8 is infinity and -8 is -infinity and that weird thing
on the left is an integral sign( this shows why we need TeX).
DVI is a device independent graphics format that TeX uses.
Look at it like a PostSript file in a way.

Now xtex I don't know about but xdvi is a program that
takes DVI files and displays them on an x-terminal...

 Note: If you have read any articles published in any
of IEEE Journals, they were most likely written using
TeX. A(merican)M(athematical)S(ociety) papers are all
written in TeX. So much so that Mathematica outputs 
it's equations in TeX format if asked....

 TeX is in PD and is available from many distribution sites.
University of Washington is a major site.Donald Knuth is
at Stanford (still I believe)... If you need more info
send me e-mail...
Sinan
From: kang@stolaf.edu (Joseph S Kang)
Newsgroups: fj.mail-lists.x-window
Subject: Need xrn help
Date: 10 Sep 92 04:57:55 GMT
Distribution: fj
Organization: St. Olaf College, Northfield, MN

Date: Wed, 9 Sep 1992 14:24:17 GMT
Message-Id: <1992Sep9.142417.12207@news.stolaf.edu>
Newsgroups: comp.windows.x

Hi, Ineed some help with xrn.  I need to know if there is something that you
can put into a .Xresources file so that when xrn saves articles, it does so
without the headers.   Thanks in advance.

Joe
-- 
Joseph Kang      |  Disclaimer:  Whether you believe it or not, the views
kang@stolaf.edu  |               expressed in the above article are all mine.
                 |  		 Unless I've been brain-washed and don't know
St. Olaf College |    		 it or don't notice the difference. :-)
From: richm@netcom.com (Richard Mauri)
Newsgroups: fj.mail-lists.x-window
Subject: Drawing w/clipmask to obscurred window doesn't draw!
Date: 10 Sep 92 01:35:31 GMT
Distribution: fj
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Date: 9 Sep 92 16:17:22 GMT
Message-Id: <4ssn2pm.richm@netcom.com>
Newsgroups: comp.windows.x


I have a motif drawing area widget (destination window)
that I draw vectors to with XDrawSegments() using a gc 
w/o a clip mask. Then I draw a filled rectangle using 
a gc with a clip mask. When the destination window is
not obcurred everything shows up ok and the backing store
I have requested is doing it's job when I later obscure
and expose the destination window. The problem is when
the destination window is obscurred at the time of drawing,
and then the destination window is exposed, only the segments,
not the clipmasked rectangle, get redrawn. Backing store
isn't doing it's job and I get no expose events either!

I have also tried setting the clipmask followed by an
XCopyPlane() instead of the XFillRectangle, but I get the same
results. Only when I simply use XCopyPlane w/o using a clipmask
does the problem go away.

Is there a bug, or am I missing something? Any workarounds?

I am runing SunOs4.1.x/X11R4/Motif1.1.3.

Thanks, Rich
-- 
Richard Mauri               // Not ready to face the winter.
SW Eng / X hack             // Pray for wind.
Trimble Navigation Ltd.     // Pay the bills.
rmauri@netcom.com	    // Hope nothing breaks
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Colormap stuff
Date: 9 Sep 92 03:28:02 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Tue, 8 Sep 92 20:35:06 GMT
Message-Id: <1992Sep8.203506.21378@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics

In article <Bu6Jo0.EtD@wpi.WPI.EDU>, rtipnis@maxine.wpi.edu (Rajeev Tipnis) writes:

> In one of my applications, I want to dynamically change the colors of
> the stuff on a certain canvas widget.  So, I need to create my own
> colormap.

Not unless the toolkit or widget set demands it; all you need is to
allocate read/write cells instead of read-only cells.  (Use
XAllocColorCells or XAllocColorPlanes instead of XAllocColor or
XAllocNamedColor.)

> However, I don't want the border colors/background color of the
> window I am in to change.  So, I gather, I need to see to it that
> when I create my own colormap, I should not change certain color
> cells (which are getting used by this window) and should only use
> other color cells for my color scales.

Not quite.  When you create a new colormap, what will be displayed for
any given pixel value if that colormap is installed is undefined.  You
need to allocate and fill any colormap cells you care about (the
allocation can in some cases be done at colormap creation time).

So it's not that you don't want to change those cells in your new
colormap; you have to.  It's just that you want to change them to match
what's in the default colormap in those spots.

> So, my problem is ... How do I do this ?

With XQueryColor/XQueryColors and XStoreColor/XStoreColors.
Unfortunately there is no way to tell which cells you need to copy, and
in fact it may change from moment to moment, since the window manager
may well allocate and free colormap cells on the fly.

This is part of the reason you're better off allocating out of the
default colormap.  (It's also a reason why, when possible, the window
manager might be well-advised to use overlay planes for its stuff.)

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: ndd@bal1.lcs.mit.edu (Ned Danieley)
Newsgroups: fj.mail-lists.x-window
Subject: Re: colormap problems on Sun 4/280? (X11R5, gcc 2.1)
Date: 12 Sep 92 12:35:28 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 11 Sep 92 15:22:46 GMT
Message-Id: <5247@news.duke.edu>
Newsgroups: comp.windows.x

Ned Danieley (ndd@sunbar.mc.duke.edu) wrote:
: I finally got around to updating R5 with the current fixes and
: compiling with gcc 2.1; it works fine on my color SS1s and IPCs,
: but not on my 4/280. bringing up xcolors shows that almost no
: color names match the displayed colors. all the sun4s are using
: the same binaries and libraries; the only difference that I can
: think of is that the 4/280 is a cgtwo, and the others are cgthrees.
: any suggestions?



the only response that I got was to try recompiling sunCG2C.c
without optimization. that didn't help, but recompiling it with
cc instead of gcc did.


--
Ned Danieley (ndd@sunbar.mc.duke.edu)
Basic Arrhythmia Laboratory
Box 3140, Duke University Medical Center
Durham, NC  27710   (919) 660-5111 or 660-5100
From: da188@city.ac.uk
Newsgroups: fj.mail-lists.x-window
Subject: Re: Can you run X over a serial line?
Date: 14 Sep 92 15:45:26 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Message-Id: <AA00382.9209141219.Truro@uk.ac.city>
Date: Mon, 14 Sep 92 13:19:04 BST
Reply-To: da188@city.ac.uk
X-Mailer: ELM [version 2.3 PL11]

>Subject: Re: Can you run X over a serial line?
>To: mark@edu.ucsb
>Date: Mon, 14 Sep 92 13:15:14 BST

>Has anyone out there experimented with running an X application on a SPARC 2
>using modems?  My boss wants me to connect a pair of SPARCs together with a 
>pair of 19.2K modems using ppp.  My first thought is that there isn't enough
>bandwidth.  Any thoughts?
>

Theoretically, it is possible by using SLIP between the server and the client.
Don't expect brilliant response times tho'! Seriously, the MIT X Consortium is
said to be working on optimising the code so that serial connections are 
useable. Whether this has been done or not yet I do not know, release 6?

Aj.
-- 
.-------------------------------[ The Eno ]------------------------------------.
 JANET : da188@uk.ac.city  da188@uk.ac.city.cs
 I'net : da188@city.ac.uk  da188@cs.city.ac.uk
 BITNET: da188%city.ac.uk@cunyvm.cuny.edu   da188%cs.city.ac.uk@cunyvm.cuny.edu
`------------------------------------------------------------------------------'
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Newsgroups: fj.mail-lists.x-window
Subject: Re: GUIs Considered Harmful
Date: 4 Sep 92 20:24:34 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: 3 Sep 92 23:16:17 GMT
Message-Id: <1992Sep3.191617.22456@jarvis.csri.toronto.edu>
Newsgroups: comp.windows.x,alt.religion.computers,comp.windows.news,comp.windows.misc,comp.human-factors

>> I *still* can't remember
>> whether dragging & dropping a file icon between directory windows
>> on the Macintosh will do a move or a copy, and have trouble remembering
>> what bizarre key/mouse combinations it takes to do "the other one."
>
>What bizarre combination? You select copy from the menu.

Ha!  That's what you might think!  If you select a file and then select "copy",
it won't copy the file, but rather will save a copy of the file name for
pasting into an application or another file name.  You may have been thinking
of "duplicate", but this creates a file called "copy of ZZZ", which is a pain,
and creates it in the same directory.  Often you want to copy a file to another
disk or another directory.  If you drag it into a folder (directory) which is
on another disk, it's a copy; if it's on the same disk, it's a move.  If you
hold down option when dragging on the same disk, it's a copy instead of a move,
and this is what the original poster was referring to.  On the other hand, when
dragging things into the trash (to delete them), holding down option makes it
not ask for a confirmation before deleting system files and applications.

>> (And don't get me started on the idiocy of insisting on a one-button
>> mouse, when it just forces you into keyboard overload mode--
>> shift-ctrl-click-unshift-drag-doubleclick-unctrl-applekey. :-)

I agree with you, mostly, except there is the argument that it makes it clear
which is the primary mouse button.  Nothing like a system (e.g. X) in which the
various applications disagree about which is the primary mouse button and which
is the special one.  But this is better dealt with via user-interface
guidelines, like on the Amiga, on which I've only seen one program that does
the mouse buttons "wrong".
From: nazgul@alphalpha.com (Kee Hinckley)
Newsgroups: fj.mail-lists.x-window
Subject: Re: GUIs Considered Harmful
Date: 4 Sep 92 23:05:53 GMT
Distribution: fj
Organization: Alfalfa Software, Inc.

Date: 3 Sep 92 21:31:59 GMT
Message-Id: <1992Sep3.213159.6398@alphalpha.com>
Newsgroups: alt.religion.computers,comp.windows.misc,comp.windows.news,comp.windows.x,comp.human-factors

ghm@ccadfa.cc.adfa.oz.au (Geoff Miller) writes:
> But these are things you have to buy, not a part of the Mac GUI as such.
> So what you're saying is that after buying a Mac (which is already 
> overpriced for what it provides), if I want an acceptable interface I
> have to buy _more_ software.
Yes.  If *you* want an acceptable interface you have to pay extra,
because the Mac wasn't designed for *you*, it was designed for people
who are not familiar with computers.  Why should they have to pay for
things they don't want or need?
-- 
						nazgul@alfalfa.com

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
From: amoss@huji.ac.il (Amos Shapira)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Questions regarding TVTWM
Date: 8 Sep 92 14:29:31 GMT
Distribution: fj
Organization: Mail to News Gateway at Wang Labs

Date: 8 Sep 92 10:56:59 GMT
Message-Id: <amoss.715949819@falafel>
Newsgroups: comp.windows.x

mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:

>In article <huber.15.715359892@vax2.gac.edu>, huber@vax2.gac.edu (Tom Huber) writes:

>> I am running TVTWM under X11R4 on a NeXT

>> I was wondering how to set the root window to grey (rather than the
>> default tiled background with TVTWM?  Before loading TVTWM, I can use
>> xsetroot -grey  , however once TVTWM loads it overwrites it with the
>> default background and further calls to xsetroot have no effect.

>of the screen.  IMO the right solution is to fix tvtwm, but the way out
>usually taken is to hack on programs that manipulate the root window
>and add kludges to find the tvtwm-created window that serves as the
>visual background of the screen, and manipulate that window instead.

xv -root will find the right window.

What I would really like to have in tvtwm is that it wouldn't obscure the
real root so no-one should know about it and so I get the same image no matter
what part of the virtual root is visible currently (I was thinking while
writing this [I sometimes do that :)] and though that maybe a transperant
window as the virtual root might do that? What do you think?)

Cheers,
--
--Amos Shapira (Jumper Extraordinaire)
C.S. System Group, Hebrew University, Jerusalem, Israel
amoss@cs.huji.ac.il
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Attention Earthlings -- Cross-Vendor X11 Server Mess!
Date: 6 Sep 92 11:35:55 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Sun, 6 Sep 92 07:08:59 GMT
Message-Id: <1992Sep6.070859.16468@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.windows.x,comp.windows.x.apps

In article <JWZ.92Sep2121839@thalidomide.lucid.com>, Jamie Zawinski <jwz@lucid.com> writes:

> I see keySYMs as a way for the user to say things like "I want all
> applications to transpose the behavior of backspace and delete."  Of
> course, users aren't actually going to transpose the physical switch
> covers, but it seems to be the Party Line that they should (see ICCCM
> section 6.5).

I use xmodmap to (a) switch the [{ and ]} keys to [] and {} and (b)
interchange linefeed and delete.  (And do some things to the blob of
keys off to the right of the main keyboard.)  The first one can't be
done by switching keycaps (I'd have to switch half-keycaps) and neither
can the second (the physical keycaps have different dimensions).

If I could I would, though.  (I've occasionally wished for a keyboard
with small - say, 16x16, or 32x32 - displays on each keycap, that could
be downloaded to....)

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: media!arthur@bloom-beacon.MIT.EDU (Art Poley)
Newsgroups: fj.mail-lists.x-window
Subject: X11/R4 Shared Memory Extensions -- Server Error
Date: 13 Sep 92 11:06:52 GMT
Distribution: fj
Organization: Media Cybernetics, Inc.

Date: 10 Sep 92 16:55:40 GMT
Message-Id: <1992Sep10.165540.18373@media.uucp>
Newsgroups: comp.windows.x

I've recently encountered an X Error while using the Shared Memory extensions.
The message is as follows:


X Error of failed request: BadAccess (attempt to access private resource denied)
 Major opcode of failed request: 129 (MIT-SHM)
 Minor opcode of failed request: 1 (X_ShmAttach)
 Serial Number of failed request: 12615
 Current serial number in output stream: 12642


Briefly, the approach is as follows:

		image = XShmCreateImage()

		shminfo->shmid = shmget(IPC_PRIVATE, image->bytes_per_line * image->height, IPC_CREAT|0777);
		if(shminfo->shmid > 0)
		{
			shminfo->shmaddr = image->data = shmat(shminfo->shmid, 0, 0);
			if(shminfo->shmaddr != ((char *)-1)) 
			{
				shminfo->readOnly = False;
				XShmAttach(display, shminfo);
			}
		}


The code above would not do a XShmAttach if creation or attachment to the
segment fails.  Therefore, why is the XShmAttach causing a server error
every so often?  If anyone has encountered this before I'd appreciate
your feedback.



Thanks in advance,

Art Poley
-- 
--------------------------------------------------------------------------
Art Poley - S & S Inficon               Phone: (301)975-0728 (9655 FAX)
Internet: arthur%media@uunet.uu.net     UUCP: {uunet,hqda-ai}!media!arthur