HDTenEightyP/NetNews huggingface dataset:
From: gesamic@isa.informatik.th-darmstadt.de (SEP Lutz)
Subject: core dump with Form widget
Date: Wed, 23 Dec 1992 09:11:02 GMT
Organization: Institut fuer Systemarchitektur, TH Darmstadt, Germany
Keywords: Form widget, XtDestroyWidget

Hi folks !

Sorry to bother U with this, but I cannot think of an other solution than blaming it on Athena ...

Our system is: SunOS 4.1.1, X11R4 on sun4c

We have got a menu with callbacks poping up Popup-Shells. These Shells contain
a Form-widget, which in turn contains some labels, buttons, a scrollbar and a 
list widget. 
After leaving the popup, we use XtDestroyWidget on the popup-shell widget. 
Next time a menu item is selected, all widgets (including the popup shell) 
are created once again.
So far, so good ! It works well for the first time, perhaps for the second, too
but then we receive a "Segmentation fault (core dumped)" or a Bus error.
Using dbx one gets:
  "program terminated by signal SEGV (no mapping at the fault address)"

Stack is:

  LayoutChild() at 0x14e1c
  LayoutChild() at 0x14e70
  `Form`Layout() at 0x14c88
  `Form`RefigureLocations() at 0x14bf8
  `Form`ChangeManaged() at 0x1536c
  CallChangeManaged() at 0x3814c
  CallChangeManaged() at 0x380f0
  XtRealizeWidget() at 0x384fc
  _XtPopup() at 0x3e4cc
  XtPopup() at 0x3e54c
  DisplaySimpleScroll(), line 285 in "/users/gesamic/...."
  delete_relation(top = 0xdec00, client_data = (nil), garbage = (nil)), line ...
  _XtCallCallbacks() at 0x2c128
  XtCallCallbacks() at 0x2c318
  `Sme`Notify() at 0x28344
  `SimpleMenu`Notify() at 0x1b220
  _XtTranslateEvent() at 0x4a5dc
  DispatchEvent() at 0x343d8
  DecideToDispatch() at 0x34ab4
  XtDispatchEvent() at 0x34b60
  XtAppMainLoop() at 0x34e60
  main(argc = 1, argv = 0xf7fff9cc), line ....

If this does say something to one of U or U are interested in the problem 
itself, have solved a similar problem or can supply relevant information, please
feel free to write back.

Thanx !

	gesamic project group (Mike)

Xref: sparky comp.windows.x.intrinsics:700 comp.windows.x.motif:8298
From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.motif
Subject: Re: setting resources causing crash!!
Date: 2 Jan 93 18:11:52 GMT
Followup-To: comp.windows.x.intrinsics

In article <1992Dec31.152754.27251@atinc.uucp>, root@atinc.uucp (Operator) writes:
|> I have created a custom widget which has many resources.  I have noticed recently that when setting resources with XtSetArg before calling XtCreateWidget, that the application core dumps in the XtCreateWidget call.  I don't know if its a certain order whe|> n setting the resources, and if its the number of resources set, but dbx definitely traces the problem in XtCreateWidget(). Actually _XtCreateWidget, which is called by XtCreateWidget(), with a seg violation at the top of memory.
|> 
|> Using XtSetValues seems to work fine.
|> 
|> Can anyone shed some light on this for me. I'm wondering if I have a resource conflict.  I am thinking that the problem exists when looking at the resource list passed down from the application.  My widget code is not called yet, so the resource list migh|> t be clobbering something, maybe.  Help before I tracethrought the Intrinsics with the debugger.


The order is not important.
Since Create does not work and SetValues does,
I would suspect that your Initialize method
is faulty.

Some debuggers are not smart enough to tell you where
you really are (accurately) when you have gone through a function
pointer.  You might be inside your Initialize procedure
and not know it.

I would recommend putting "printf"'s in your Initialize procedure.

Duplicate resources are not a problem.
The one furthest down in the heirarchy is the one that is used.
From: scjones@thor.sdrc.com (Larry Jones)
Newsgroups: comp.windows.x.intrinsics
Subject: Create widget in existing window?
Date: 21 Dec 92 17:05:33 GMT

I have an application where a main process manages a large widget tree
containing lots of menus and other user interaction type stuff and a
single drawing area widget.  The user interaction ultimately sends
commands to an asynchronous subprocess which draws in the drawing area. 
I'd like to use the intrinsics in the subprocess, but I'm not really
sure of the best way to get a widget created using the existing drawing
area window.  I suspect that I need a shell of some kind to be the root
of the subprocess's widget tree; is that true?  If so, can I use an
existing shell widget and just stuff in the appropriate window id and
set the realized flag, or should I do it right and create a new
subclass?  Any help would be greatly appreciated.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
larry.jones@sdrc.com  or  ...uunet!sdrc!larry.jones
I suppose if I had two X chromosomes, I'd feel hostile too. -- Calvin
Newsgroups: comp.windows.x.intrinsics
From: schreibs@Informatik.TU-Muenchen.DE (Siegfried Schreiber)
Subject: Wanted: table widget
Keywords: table widget for athena
Originator: schreibs@suneickel2.informatik.tu-muenchen.de
Organization: Technische Universitaet Muenchen, Germany
Date: Mon, 21 Dec 1992 14:12:58 GMT


Hi,

I' am looking forward for a flexible composite Athena 
compatible widget, which allows to arrange other
widgets in a table (something like the
tabular environment in LaTex). 

Does anyone know about such a widget ?

                                 Thanks

                                 Siegfried

                          (schreibs@informatik.tu-muenchen.de)
From: qizeng@acsu.buffalo.edu (Qi Y. Zeng)
Newsgroups: comp.windows.x.intrinsics
Subject: problem with intrinsics.h
Date: 21 Dec 92 22:43:20 GMT
Organization: UB

Dear Netters:
    I have run an X_window program but I have found 
some problems there.
    This program is from the book "X window System--
Programming and applications with Xt" by Douglas A.
Young.
    I send the program and the error message to you
and hope you can help me to solve this problem.
    With best regards and many thanks.

                                  Qizeng

I type the following to run the program:

cc memo.c concat.c -lX11 -L/util/X11/lib


The error message is as follows:


memo.c: 2: Can't find include file X11/Instrinsic.h
/util3/X11/include/Xw/Xw.h: 80: XtRTranslationTable redefined
/util3/X11/include/Xw/Xw.h: 302: XtNinsertPosition redefined
/util3/X11/include/Xw/Xw.h: 307: XtNselectionArray redefined
/util3/X11/include/Xw/Xw.h: 308: XtNtextSource redefined
/util3/X11/include/Xw/Xw.h: 309: XtNselection redefined
/util3/X11/include/Xw/Xw.h: 313: XtNeditType redefined
/util3/X11/include/Xw/Xw.h: 314: XtNfile redefined
/util3/X11/include/Xw/Xw.h: 315: XtNstring redefined
/util3/X11/include/Xw/Xw.h: 316: XtNlength redefined
/util3/X11/include/Xw/Xw.h: 317: XtNfont redefined
concat.c:


he program is as follows:

memo.c is

#include<X11/Instrinsic.h>
#include<X11/StringDefs.h>
#include</util3/X11/include/Xw/Xw.h>
#include</util3/X11/include/Xw/SText.h>
#include<stdio.h>

extern char *concat_args();
main(argc,argv)

     int argc;
     char *argv[];

{
  Widget toplevel,msg_widget;
  Arg wargs[];
  int n;
  char *message;

  toplevel=XtInitialize(argv[0],"memo",NULL,0,&argc,argv);

  n=0;
  if((message=concat_args(argc,argv))!=NULL){
    XtSetArg(wargs[n],XtNstring,message);n++;
  }
  
  msg_widget=XtCreatManageWidget("message",XwstatictextWidgetClass,toplevel,
				 wargs,n);

  XtRealizeWidget(toplevel);
  XtMainLoop();
}


concat.c is:


#include<stdio.h>
char *concat_args(n,words)
     int n;
     char *words[];
{
  char *buffer;
  int i,len=0;
  
  if(n<=1)
    return("");
  for(i=1;i<n;i++)
    len+=strlen(words[i]);
  len+=(n-1);
  buffer=(char *)malloc(len+1);
  if(buffer==NULL){
    fprint(stderr,"out\n");
    exit(1);
  }
  buffer[0]='\0';

  for(i=1;i<n;i++){
    if(i>1)
      strcat(buffer," ");
    strcat(buffer,words[i]);
  }
  return (buffer);
}
Newsgroups: comp.windows.x
From: rogerr@netcom.com (roger reynolds)
Subject: WCL/XRM question
Followup-To: poster
Keywords: WCL XRM
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 31 Dec 1992 05:10:03 GMT



	Ok, here's one for a true Xrm wizard...
	
	I would like to be able to use the X Resource Database to
	store values for "objects" and "instances of objects" where
	the objects are application defined things, i.e. not widgets.
	(though they certainly contain widgets...)

	I have had a fair bit of success at the first part of this,
	by defining a structure and then using XtGetApplicationResources
	to fill in members of that structure.  This works swell for
	an "instance" of an object, but I can't get my head around how
	to define resources at the class level.

	For anybody who is still following this, perhaps a short example
	to illustrate my question...

	Ok, lets say that I have defined a new Class called "Caption",
	and have registered a constructor with WCL to be called when
	an instance of a "Caption" is to be created. 
	(Caption is a simple object which binds a label widget to some 
	"work area" widget...)
	In my constructor, I create a base widget manager of some type,
	and a label and	a work area as its children, and return the base 
	widget created.
	Also in my constructor function, I use XtGetApplicationResources
	to fetch the special resources that a Caption knows about.
	Like I say, this all works fine.

	Using WCL, the resource file looks like this:

	foo.wcCreate: Caption
	foo.labelString: My Caption Label
	foo.workArea: form
	form.wcCreate: XmForm
	...


	Now what I'd like to be able to do, is create a class "Caption"
	in the Resource Database that a user can use to set default 
	Caption resources, but here I've had little luck.
	The idea would be to be able to say things like :

	*Caption*XmLabel.alignment:XmALIGNMENT_CENTER

	and so on.

	
	Any tips on how to attack this sort of thing, or ideas on what
	to read or where to look for similar examples of Xrm usage
	would be much appreciated...

	Thanks,
	rogerr@netcom.com
From: wcraig@sapphirine.Berkeley.EDU (W. Craig Carter)
Newsgroups: comp.windows.x.pex
Subject: New to PEX--naive question
Date: 2 Jan 1993 22:12:43 GMT
Organization: /etc/organization
NNTP-Posting-Host: sapphirine.berkeley.edu

Two naive questions (sorry, but I'm new to pex...)

1.  I am looking for a "hello_pex.c" that I can get to work
    on a sun monochrome ws running x11r5--anyone kind enough
    to send me one or prompt me for the right questions

2.  Is there a way to get the pex-demos from the mit distribution
    of x11r5 running on a monochrome screen?

Many thanks, wcraig@sapphirine.berkeley.edu
From: altman@camis.stanford.edu (Russ Altman)
Newsgroups: comp.windows.x.pex
Subject: Phigs.o for an HP-720?
Followup-To: comp.windows.x.pex
Date: 29 Dec 1992 00:27:04 GMT
Organization: Stanford
Distribution: world
NNTP-Posting-Host: msob-a-fp-dynamic.stanford.edu

Hi.  I need a phigs.o file for a hp-720.  Anyone can give me a clue?
Is this public domain or is there a company I need to buy it from?

Thanks,
Russ Altman
Stanford Medical Informatics
From: geert@ahold.nl (Geert Jonkheer)
Newsgroups: comp.windows.x
Subject: XDM under SOLARIS 2.X
Keywords: XDM,solaris,Support to X terminals
Date: 28 Dec 92 08:58:16 GMT
Organization: Ahold NV, Zaandam, Netherlands, EEC

Hi,

We have troubles running XDM under Solaris 2.X. 
It occurs to me if SUN got rid of the XDMCP protocol when porting
XDM to SOLARIS 2.X, because XDM only works on an
SUN station with an attached monitor. Even when this
works, it looks like XDM is using the old setup for 
the passwords file. XDM looks for a password in the password
file which is changed under Solaris 2.X to the
shadow file.

Because we are a site which have X-terminals attached to a
SUN sparcstation/server we want to use XDM as it does
on many other platforms (for example DELL and even SUNs running
the old 4.1.X version of the operating system).

We are now using an old XDM program which came with 
an Tektronix X-terminal. For the time being this is ok, but
because this version works also with the old-style passwd
file this is not the recommended solution for the problem.
SUN won't help us.

Has somebody ported a working XDM to the Solaris 2.X platform?

If so, please contact me using email.

Thanks in advance,

Geert (geert@ccsds.ahold.nl)


-- 
================================================================================
 ============                  Geert W.T. Jonkheer.               =============
   ========== Ahold  N.V.  The  Netherlands  geert@ccsds.ahold.nl ========== 
      ===================================================================
From: shah@fnsony.fnal.gov (Hemant Shah)
Newsgroups: comp.windows.x
Subject: Re: Framemaker - X cut and paste
Date: 22 Dec 1992 19:44:12 GMT
Organization: Fermi National Accelerator Laboratory, Batavia, IL
Distribution: world
Reply-To: shah@fnsony.fnal.gov
NNTP-Posting-Host: fnsony.fnal.gov
Keywords: Framemaker, X, keyboard map


In article <1244@alsys1.aecom.yu.edu> you write:
|> I have been trying to cut and paste between Framemaker and either xterm or
   xrolo (or any X-based application) 
|> without success.  I know that Framemaker has an internal clipboard but the 
   manual says that selected text
|> is held in the X clipboard and may be pasted elsewhere.  This is not true 
   with the standard setup.  I am running
|> FM on a Sparc 1+, SUNOS 4.1.3, X11R5, olvwm.  I have had the same problem 
   with twm and olwm.  Is there
|> an X resource I need to adjust or a keymap I need to enable?
|> 
|> Thanks in advance.
|> 
|> 
|> 
|> Ken Krauter
|> Department of Cell Biology
|> Albert Einstein College of Medicine
|> 1300 Morris Park Ave.
|> Bronx, NY  10461
|> Tel.  (718) 430-3509
|> FAX.  (718) 829-7619
|> Email ksk@ksksun.ca.aecom.yu.edu
|> 

The problem is with olvwm or olwm. They do not put the marked test in X cut
buffer. I use Frame Maker on SUN under Motif and cut/paste works fine.
You may also do following (see FAQ)

    Under OpenWindows 2, you need to add the following either to your
    $HOME/.Xdefaults file, or to $OPENWINHOME/lib/app-defaults/XTerm instead:

        XTerm*VT100.Translations: #override \
                <Key>L6:select-set(CLIPBOARD)\n\
                <Key>L8:insert-selection(CLIPBOARD)

    Under OpenWindows 3, this is already in the app-defaults file, so if it
    isn't working, check that XFILESEARCHPATH is set to
        /usr/openwin/lib/%T/%N%S
    and if it isn't, either set it or copy/merge the above lines from
    $OPENWINHOME/lib/app-defaults/XTerm into /usr/lib/X11/app-defaults/XTerm.

Hope this helps.

-- 
-------------------------------------------------------------------------------
Hemant Shah                            | All the opinions expressed are my own
Fermi National Accelerator Laboratory  | and does not necessarily reflect
Systems Integration Group              | those of Fermilab.
E-mail :shah@fnal.fnal.gov             |
 Voice : (708) 840-8071	               | I haven't lost my mind
   Fax : (708) 840-2783                | it's backed on tape somewhere.
-------------------------------------------------------------------------------
Newsgroups: comp.windows.x,comp.sys.ibm.pc.misc
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: What's the best PC X terminal software? Deskview X, Windows X?
Organization: PictureTel Corporation
Date: Mon, 21 Dec 1992 14:18:35 GMT

In article <EJH.92Dec16141119@khonshu.colorado.edu> ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:

>  ... with our real spiffy 14.4K bps modems, would running an X
>terminal over a modem be prohibitively slow? Anyone ever try that?

NCD PC-XView with Xremote works decently (for me in a local-connect
trial setup at 9600bps async).  They're selling the Xremote/PC-Xview
package for $200 now.

A couple of cautions.

1) I had a HUGE .Xdefaults file.  I trimmed it way down,
   and client startup time improved quite a bit.

2) The Xremote release notes say, and my experience verifies, that
   your PC should have a 16550 serial controller chip (the one 
   with a character silo) instead of a '450 if you're going 
   to be running serial communications at >= 9600bps
   on MS Windows.  Most PCs come with not-good-enough serial 
   controller chips.   You can probably buy the appropriate
   serial card in a computer store for < $50.

(I don't have any relationship with NCD other than as a customer.)

Ollie Jones
Newsgroups: comp.windows.x
From: koverber@cs.ulowell.edu (Kurt Overberg)
Subject: Re: Postscript in a window
Originator: koverber@bigmax.ulowell.edu
Keywords: postscript window
Organization: University of Massachusetts at Lowell Computer Science
Date: Mon, 21 Dec 1992 15:36:30 GMT



There is a public domain utility called Ghostscript and Ghostview.
They are both available from export.lcs.mit.edu, by anonymous ftp
(log in as anonymous, send your user ID as password).
Ghostscript is a postscript interpreter, and Ghostview contains
a widget that can be used in your own programs.  I have gotten this
to work fairly well (even made some modifications! :^) )  So 
feel free to ask me any questions you may have.


						peace out.

						    kurt

-- 
Kurt Overberg            | Opinions expressed here are MINE!           
U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: comp.windows.x
Subject: Re: Ansi Xterm
Date: 21 Dec 92 17:06:50 GMT
Distribution: na
Organization: McGill Research Centre for Intelligent Machines

In article <1992Dec18.093236@roper.mc.ti.com>, a722756@roper.mc.ti.com (W. Donald Rolph) writes:

> My review of the X11R5 xterm indicates that it supports cursor
> movement and control per ANSI X3.64, but does not support color
> control.

X3.64 doesn't include color control, at least not in the copy I got
from the library and read.  ISO 6429 (which I haven't read; this is
second-hand at best) does include some new values for X3.64's SGR
sequence, for controlling color.  (Of course, you may already be aware
of this; you didn't quite say you thought X3.64 included color.)

In any case, yes, you're right.  xterm doesn't do color.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: cq377@cleveland.Freenet.Edu (David C. Williss)
Newsgroups: comp.windows.x
Subject: Keyboard entry for other languanges
Date: 27 Dec 1992 06:02:17 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
NNTP-Posting-Host: hela.ins.cwru.edu


Hi all,  

I work for a software company which is using X and Motif for the user
interface (Not CWRU, that's just where my news feed is)

My question regards text entry for other languages (ie: non-english)
How does one enter the characters which aren't part of the english
language into a text widget?  I'm not talking about accented characters 
and such, I'm talking about languages with vastly different character
sets such as chineese.  I've seen a Chineese version of Microsoft
Windows(tm) and it has a special method for entering characters using
some phonetic method. As you type the word phonetically, it presents
you with a bunch of glyphs that may represent what you're typing, then
you pick that one.  

This is important to us because our software is currently used in
about 40 countries, most of which don't speak English.  Most of
the people operating the software can muddle their way though it,
but prefer it to be in their own language, and _reqire_ their output
to be in their own language.

Also, what can anybody tell me about the XmText widget in Motif 1.2?
I've read that it can take 16-bit character sets, which are needed
for such language problems.


-- 
		-Dave Williss
---------------------------------------------------------------------------
Standards are great!  Everybody should have one of their own!
From: stefans@bauv.unibw-muenchen.de (Stefan Schwarz)
Newsgroups: comp.windows.x
Subject: Re: Help with Colormaps
Date: 23 Dec 92 07:26:01 GMT
Organization: University of the armed forces, Munich
NNTP-Posting-Host: bauv106.bauv.unibw-muenchen.de

hstroyan@hpfcso.FC.HP.COM (Howard Stroyan) writes:

>In comp.windows.x, Judith Moore <judith@mermaid.larc.nasa.gov> writes:

>> I'm new to X-windows and am writing an application for which I
>> need to use a series of (different) 256-color color tables on 
>> a single open window -- that is, with the same image displayed, I
>> want to change the entire colormap an arbitrary number of times.
>> I'm having a lot of trouble making X understand this. Can anyone
>> supply a cookbook of the sequence of events and functions to 
>> thoroughly quash the previous colormap and allow a new one to 
>> color the picture?

>You have several ways you can go on this. 

>You can use a series of seperate software colormaps and
>can the "colormap" which associated with the window, or you can
>use a single X Colormap resource and redefine the content of that
>one colormap's cells.

>If the colormaps are apriori finite set the first method is 
>probably best because it will offer the quickest transitions.  

>If the colormaps are dynamic in nature or large in number the 
>second method might be better.

>To implement the 1st method it would look something like:

>    Colormap cmap[number_of_cmaps];
>    XColor   colors[][];

>    for (number_of_cmap)
>    {
>	cmap[i] = XCreateColormap(display, w, visual, AllocAll);
>	XStoreColors(display, cmap[i], color[i], ncolors);
>    }

>    /* when you need to switch cmaps use */
>    XSetWindowColormap(display, w, cmap[selector]);

>    /* when you're all done, don't forget */
>    XFreeColormap(display, cmap[i]);

>If you go with option 2, then you will only need to Create one cmap.
>Use the  XStoreColors call to replace the color mapping for the cells
>in the Colormap with a new set of mappings.

Just two remarks to the above answer:

(1) Be aware of the fact, that after XSetWindowColormap all other applications
    show up with incorrect colors and moving the pointer between application-
    windows (should) cause flickering when switching between colormaps.

(2) If you'r using only one colormap, you should first try with DefaultColormap.
    Only if this map doesn't provide you enough free cells, you should
    allocate your own private map (with restrictions from (1) )

Stefan
--
Stefan Schwarz                            University of the armed forces
Laboratory for graphical data processing  W-8014 Neubiberg, FRG
--
Newsgroups: comp.windows.x
From: rgooch@rp.CSIRO.AU (Richard Gooch)
Subject: Re: How to make *shared-memory* Pixmaps on Sun 4?
Organization: CSIRO Division of Radiophysics/Australia Telescope National Facility
Date: Tue, 22 Dec 1992 01:23:51 GMT

In article <RBERLIN.92Dec18225118@birdland.Eng.Sun.COM>, rberlin@birdland.Eng.Sun.COM (Rich Berlin) writes:
> 
> > This is exactly what the MIT-SHM extension gives you.  I have no idea
> > whether or not Sun supports this extension
> 
> Seems to.  xdpyinfo on my machine (running OpenWindows V3) says
> 
> number of extensions:    7
>     SUN_DGA
>     SunWindowGrabber
>     XInputDeviceEvents
>     Multi-Buffering
>     SHAPE
>     SUN_ALLPLANES
>     MIT-SHM
> 
> -- Rich

  This also works for the MIT sample X server. A caveat when using SHM on Suns:
  it won't work unless your kernel is configured to have SHM.
  The GENERIC_SMALL kernel does not have SHM, however, GENERIC kernel does.
  If it doesn't work, get your friendly sysadmin to reconfigure your kernel.

				Regards,

					Richard Gooch....
Newsgroups: comp.windows.x
From: bio@lis.rch.unimelb.edu.au (Minh Tran)
Subject: pcftobdf needed ??
Organization: Computer Science, University of Melbourne, Australia
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 22 Dec 1992 05:29:39 GMT


	Is there utility to convert dcf font format to bcf font format ??
	Or any one know where I can get fonts in bcf format for X11R5 ??
	Thanks.

	bio
Newsgroups: comp.windows.x