home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8399 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.1 KB  |  51 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!enterpoop.mit.edu!paperboy.osf.org!paperboy!drand
  3. From: drand@spinner.osf.org (Douglas S. Rand)
  4. Subject: Re: Warning from XtRemoveGrab
  5. In-Reply-To: Hellan@notis.telemax.no's message of 6 Jan 93 06:06:54 GMT
  6. Message-ID: <DRAND.93Jan7105602@spinner.osf.org>
  7. Sender: news@osf.org (USENET News System)
  8. Organization: Open Software Foundation
  9. References: <"21613.93.01.06.13:06*.S=Hellan.PRMD=notis.ADMD=TELEMAX.C=NO."@MHS>
  10. Distribution: inet
  11. Date: 7 Jan 93 10:56:02
  12. Lines: 37
  13.  
  14. In article <"21613.93.01.06.13:06*.S=Hellan.PRMD=notis.ADMD=TELEMAX.C=NO."@MHS> Hellan@notis.telemax.no (Jon K?re Hellan) writes:
  15.  
  16.    I have a problem when popping down Motif dialogs.
  17.  
  18.    From some dialogs, I call time consuming callbacks. Early in the callback,
  19.    I pop down the dialog with the following sequence:
  20.  
  21.        XtPopdown(shell_widget);
  22.        XmUpdateDisplay(shell_widget);
  23.  
  24.    At the end of the callback, the dialog is destroyed.
  25.  
  26.    Sporadically, I get the warning:
  27.  
  28.        Warning: XtRemoveGrab asked to remove a widget not on the list
  29.  
  30.    I am not quite sure, but I think there have been core dumps shortly after this.
  31.  
  32.    I introduced the popdown to give better feedback to the user. Previously, the
  33.    dialog did not disappear until the dialog was destroyed at the end of the
  34.    callback.
  35.  
  36. Well,  the message from XtRemoveGrab might be appearing in a 
  37. case that has been fixed in some recent releases of Motif.  This
  38. shouldn't (by itself) cause a crash.  Best of recollection is that
  39. this is fixed in 1.1.5 and 1.2.1,  but I don't know definitively.
  40.  
  41. Using XtPopdown and XtPopup is problematic for some of Motif shells.
  42. You haven't specified the class of the Shell you are using.  Some
  43. of Motif's shells require you to manage the child to post the shell.
  44. Others,  in fact,  demand the use of XtPopup.  So it depends.  It
  45. is documented.
  46. --
  47. Douglas S. Rand <drand@osf.org>        OSF/Motif Dev.
  48. Snail:         11 Cambridge Center,  Cambridge,  MA  02142
  49. Disclaimer:    I don't know if OSF agrees with me... let's vote on it.
  50. Amateur Radio: KC1KJ
  51.