Hi, all,
FYI, listed below is an excerpt from a message I received from Ken Evans
at ANL, which fixed a problem I was having. Background: I am using
RedHat Linux 5.0, RedHat Motif 2.1, and XFree86 3.3.2. I started out with
MEDM 2.3.3, then went to 2.3.4beta1, which still didn't solve the problem
I was having with the ShellCommand button. I would create a Shell Command
button, and then when I tried to fill out the grid, and press "Apply",
medm would crash with a SIGSEGV. It would also happen when I tried to
"cut" the button from the display, and when I tried to go to execute mode
if there was a Shell Command button on the display. John Sinclair at
ORNL has the same configuration, and also had the same problem. Using
xxgdb, and sending the output to Ken, he came up with the following
solution that works! Thanks to Ken, and to all of you who sent ideas.
----------------------FORWARDED TEXT--------------------------------
>
> We're making progress. The "Composite parent" is resolved.
> Properly, I think.
>
> It definitely doesn't like XmDestroyPixmap.
>
> Let's try the following instead:
>
> /* if (pixmap != (Pixmap)0) XmDestroyPixmap(XtScreen(w),pixmap); */
> if (pixmap != (Pixmap)0) XFreePixmap(display,pixmap);
> pixmap=(Pixmap)0;
>
> This needs to be done in two places, medmRelatedDisplay.c and
> medmShellCommand.c.
>
> After looking into this, I think it is a bug to use
> XmDestroyPixmap when it was created with XCreatePixmap. You should
> use XmDestroyPixmap if it were created with XmGetPixmap. The Xm
> routine is probably a wrapper around the X routine, but the LINUX
> implementation may do it differently. Who knows.
>
> Before doing this you might want to see if the same thing happens
> with the Related Display. They are implemented alike and should work
> alike.
>
--
----------------------------------------------------------
Mole problems? Call Avogadro at 602-2137
----------------------------------------------------------
Bonnie Madre
Accelerator Development
Integration and Assessment Group
ANALOG ADDRESS:
Thomas Jefferson National Accelerator Facility (TJNAF)
MS 58
12000 Jefferson Avenue
Newport News, VA 23606
(757) 269-7059
E-MAIL ADDRESS:
[email protected]
- Navigate by Date:
- Prev:
First stored 1.7 GeV electron beam @ BESSY-II, Berlin Joachim Rahn
- Next:
Re: Medm error message... Roland Mueller
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
medm on Linux Bonnie Madre
- Next:
MEDM on Linux Garrett D. Rinehart
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|