EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  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  Index 1994  1995  1996  1997  <19981999  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 
<== Date ==> <== Thread ==>

Subject: Re: Medm error message...
From: Bonnie Madre <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Fri, 17 Apr 1998 8:04:38 EDT
Thomas Birke wrote:

[...snip some problem history...]
> 
>  Bonnie> Attempt to unmanage a child when parent is not Composite
> 
> Thanks to Noboru Yamamoto, he might have found the bug!
> 
> Although we (Noboru and I) both cannot reproduce this behaviour (on HP-UX
> 10.20), it seems reasonable:
> 
> Noboru compared the implementations of the close-button in medm-2.3.3 and
> medm/DESY-2.4.9.
> 
> medm-2.3.3, medmRelatedDisplay.c, line 884 ff.:
> 
>     case RD_CLOSE_BTN:
> 	if (XtClass(w) == xmPushButtonWidgetClass) {
> 	    XtPopdown(relatedDisplayS);
> 	    XtUnmanageChild(relatedDisplayS);
> 	}
> 	break;
> 
> medm/DESY-2.4.9, medmRelatedDisplay.c, line 1354 ff.:
> 
>     case RD_CLOSE_BTN:
>       if (XtClass(w) == xmPushButtonWidgetClass) {
> 	XtPopdown(relatedDisplayS);
>       }
>       break;
> 
> The corresponding part of code in both cases is (lines 1052 resp. 1556 ff):
> 
>   XtManageChild(rdForm);
>   XtPopup(relatedDisplayS,XtGrabNone);
> 
> It seems that both close-implementations are not correct, because
> medm-2.3.3 tries to unmamage a child, that has never been managed and
> medm/DESY-2.4.9 never unmanages the managed child.
> 
> My suggestion (esp. for all Linux, Digital Unix and NT users) would be to
> replace this part of code with:
> 
> medmRelatedDisplay.c, line 884 resp. 1354 ff.:
> 
>     case RD_CLOSE_BTN:
>       if (XtClass(w) == xmPushButtonWidgetClass) {
> 	XtPopdown(relatedDisplayS);
>         XtUnmanageChild(rdForm);
>       }
>       break;
> 
> To see wether it solves the problem.
> 

Yes, this solves the problem - that message no longer appears!
Thank you!

--
----------------------------------------------
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]


References:
Re: Medm error message... Thomas Birke

Navigate by Date:
Prev: Re: Medm error message... Mark Rivers
Next: Re: Medm error message... Ken Evans
Index: 1994  1995  1996  1997  <19981999  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: Re: Medm error message... Thomas Birke
Next: RE:Medm error message... Matthias Clausen DESY -MKS-2/KRYK-
Index: 1994  1995  1996  1997  <19981999  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·