home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14652 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.4 KB

  1. Path: sparky!uunet!gatech!rutgers!cmcl2!mcclb0.med.nyu.edu!siegel
  2. From: siegel@mcclb0.med.nyu.edu
  3. Newsgroups: comp.windows.x
  4. Subject: HELP getting 2 toplevel shells on 2 displays to function simultaneously
  5. Message-ID: <1992Jul30.154611.1@mcclb0.med.nyu.edu>
  6. Date: 30 Jul 92 20:46:11 GMT
  7. Sender: notes@cmcl2.nyu.edu (Notes Person)
  8. Organization: NYU Medical Center, New York, NY 10016, USA
  9. Lines: 20
  10. Nntp-Posting-Host: mcclb0.med.nyu.edu
  11.  
  12. I have been trying to write a small program to create an Application
  13. Shell on one display and a TopLevel Shell on another display, and then
  14. define some widgets in each. Strangely enough, I can do one of two
  15. things without getting a Segmentation Fault:
  16. a) XtAppInitialize on Display1, XtOpenDisplay on Display2, then do
  17. a whole application on Display1 as long as I don't try to
  18. XtAppCreateShell on Display2 (that causes Segmentation Fault); or
  19. b) XtAppInitialize on Display1, XtOpenDisplay on Display2, then do a
  20. whole application on Display2 as long as I don't define any widgets on
  21. Display1 (that causes Segmentation Fault).
  22.  
  23. What's wrong? Do I need two Application Contexts? I tried this once
  24. and it didn't seem to have any effect. Two application shells appears
  25. to be illegal. Am I going to have to fork a new process to get the
  26. second toplevel shell working? That sounds unnecessary to me.
  27.  
  28. I would appreciate any suggestions.
  29. Chris Siegel
  30. NYU School of Medicine
  31. NEW email: chris@mchip01.med.nyu.edu
  32.