home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!cmcl2!mcclb0.med.nyu.edu!siegel
- From: siegel@mcclb0.med.nyu.edu
- Newsgroups: comp.sys.sgi
- Subject: HELP getting 2 toplevel shells working simultaneously
- Message-ID: <1992Jul30.125405.1@mcclb0.med.nyu.edu>
- Date: 30 Jul 92 17:54:05 GMT
- Sender: notes@cmcl2.nyu.edu (Notes Person)
- Organization: NYU Medical Center, New York, NY 10016, USA
- Lines: 21
- Nntp-Posting-Host: mcclb0.med.nyu.edu
-
- I have been trying to write a small program to create an Application
- Shell on one display and a TopLevel Shell on another display, and then
- define some widgets in each. Strangely enough, I can do one of two
- things without getting a Segmentation Fault:
- a) XtAppInitialize on Display1, XtOpenDisplay on Display2, then do
- a whole application on Display1 as long as I don't try to
- XtAppCreateShell on Display2 (that causes Segmentation Fault); or
- b) XtAppInitialize on Display1, XtOpenDisplay on Display2, then do a
- whole application on Display2 as long as I don't define any widgets on
- Display1 (that causes Segmentation Fault).
-
- What's wrong? Do I need two Application Contexts? I tried this once
- and it didn't seem to have any effect. Two application shells appears
- to be illegal. Am I going to have to fork a new process to get the
- second toplevel shell working? That sounds unnecessary to me.
-
- I would appreciate any suggestions.
-
- Chris Siegel
- NYU School of Medicine
- NEW email: chris@mchip01.med.nyu.edu
-