home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20892 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!olivea!charnel!durian28
  2. From: durian28@ecst.csuchico.edu (dl)
  3. Newsgroups: comp.windows.x
  4. Subject: Does XtCloseDisplay() destroys windows?
  5. Message-ID: <1iin9eINN2lr@charnel.ecst.csuchico.edu>
  6. Date: 8 Jan 93 02:01:18 GMT
  7. Organization: California State University, Chico
  8. Lines: 31
  9. NNTP-Posting-Host: bolger.ecst.csuchico.edu
  10.  
  11.  
  12. I am writing a single application context program with multiple displays
  13. in hpux 8.0/Motif1.1 environment.
  14.  
  15. I seemed to have problems with XtCloseDisplay().
  16.  
  17. Scenerio:
  18.     1. Created a display with XtOpenDisplay() and used XtAppCreateShell(),
  19.          XtCreatePopupShell() to create a toplevel widget as the parent
  20.              for other windows in that display.
  21.         2. Then, I remove the display with XtCloseDisplay().
  22.     3. When I reopens the same display (step #1) and tried to create widgets,
  23.          I get the following warning:
  24.            "Warning: Try to change value of a registered window."
  25.          and then core dumps.
  26.  
  27. Temporary solution:
  28.     - Instead of XtCloseDisplay(), I use XtDestroyWidget() on the toplevel widget.
  29.       Now, the program runs perfectly, I think.  Will there be any future problem
  30.       by not closing those displays with XtCloseDisplay()?
  31.  
  32. Main questions:
  33.     1. Will there be any future problem by not closing the displays with
  34.          XtCloseDisplay()?
  35.     1. Does XtCloseDisplay() destroys windows?  
  36.     2. If it does, what's my mistake?
  37.  
  38.  
  39. THANKS IN ADVANCE.
  40.  
  41. -dennis-
  42.