home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!mips!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sifon!loki
- From: loki@nazgul.physics.mcgill.ca (Loki Jorgenson)
- Subject: winset() BADWINDOW error
- Message-ID: <1992Jul31.195143.874@sifon.cc.mcgill.ca>
- Sender: news@sifon.cc.mcgill.ca
- Nntp-Posting-Host: nazgul.physics.mcgill.ca
- Organization: Centre for the Physics of Materials
- Date: Fri, 31 Jul 1992 19:51:43 GMT
- Lines: 43
-
- Context: 4D/25G and 4D/RPC (Indigo) with IRIXv4.0.1
-
- I have a visualization program which uses FORMSv2.0 for interface
- widgets. It opens two other windows of its own for display. As part of
- its function, it clears the windows by doing
- winset(wid_id); color(BLACK); clear();
-
- One particular time that this happens is when FORMS has just finished
- closing an fl_show_file_selector() window (to get the name of a file to read
- in) which has opened on top of one of the display windows. This is simply
- because it leaves a "residue" on the window and I'm not using the REDRAW
- events to maintain it (that's another story), so I'm just tidying it up.
-
- This always works fine on an Indigo. On a 4D/25G, if the window
- has been previously used to display graphics, the program will
- crash (without core) with a
- winset(): ERR_BADWINDOW
- message. So, the first time that I use the fl_show_file_selector(), it works
- OK (since I haven't used the window yet).
-
- Stranger still, all the other places that I use that winset/blanking
- sequence, it works without problems. AND, when stopping the program with
- dbx just prior to the winset() which crashes it, I see that the win_id
- argument does indeed have the correct value.
-
- My interpretation is that FORMS still controls the graphics somehow
- and I can't use winset() for some period of time afterword. Because my
- winset() call is immediately after the FORMS call which opens a new window,
- a complication arises. But why not on the Indigo too? And why do I have
- to have written to the window first?
-
- Thanks for any help or suggestions,
-
- ----
- 'gards,
- __________
- Loki Jorgenson // // \\ node: loki@Physics.McGill.CA
- Physicist/ //___ // // BITNET: PY29@MCGILLA
- Visualization Analyst // // _____
- EMINENCE GRISE // // // fax: (514) 849-8190
- Montreal Quebec CANADA //_____\\___// phone: (514) 849-0390
-
- -* Visibly Advanced *-
-