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: Thomas Birke <[email protected]>
To: [email protected]
Date: Fri, 17 Apr 1998 11:30:04 +0200 (METDST)
>>>>> "Bonnie" == Bonnie Madre <[email protected]> writes:

 Bonnie> When I create a related display, and fill in the grid for screens
 Bonnie> to access, and then hit the "Close" button, I get the following
 Bonnie> message:

 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.

So long,
Thomas

-- 
_______________________________________________________________________________
 /homas Birke  BESSY II   (+49)-30-6392-4934 (fax -4859)    [email protected]

Replies:
Re: Medm error message... Bonnie Madre
References:
Medm error message... madre

Navigate by Date:
Prev: Another Linux/medm problem... madre
Next: Re: Medm error message... Mark Rivers
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: Medm error message... madre
Next: Re: Medm error message... Bonnie Madre
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 ·