home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11722 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.6 KB  |  55 lines

  1. Newsgroups: comp.sys.sgi
  2. 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
  3. From: loki@nazgul.physics.mcgill.ca (Loki Jorgenson)
  4. Subject: winset() BADWINDOW error
  5. Message-ID: <1992Jul31.195143.874@sifon.cc.mcgill.ca>
  6. Sender: news@sifon.cc.mcgill.ca
  7. Nntp-Posting-Host: nazgul.physics.mcgill.ca
  8. Organization: Centre for the Physics of Materials
  9. Date: Fri, 31 Jul 1992 19:51:43 GMT
  10. Lines: 43
  11.  
  12.     Context: 4D/25G and 4D/RPC (Indigo) with IRIXv4.0.1
  13.  
  14.     I have a visualization program which uses FORMSv2.0 for interface
  15. widgets.  It opens two other windows of its own for display.  As part of
  16. its function, it clears the windows by doing 
  17.     winset(wid_id); color(BLACK); clear();
  18.  
  19.     One particular time that this happens is when FORMS has just finished
  20. closing an fl_show_file_selector() window (to get the name of a file to read 
  21. in) which has opened on top of one of the display windows.  This is simply
  22. because it leaves a "residue" on the window and I'm not using the REDRAW
  23. events to maintain it (that's another story), so I'm just tidying it up.
  24.  
  25.     This always works fine on an Indigo.  On a 4D/25G, if the window
  26. has been previously used to display graphics, the program will
  27. crash (without core) with a
  28.     winset(): ERR_BADWINDOW
  29. message.  So, the first time that I use the fl_show_file_selector(), it works
  30. OK (since I haven't used the window yet).
  31.  
  32.     Stranger still, all the other places that I use that winset/blanking
  33. sequence, it works without problems.  AND, when stopping the program with
  34. dbx just prior to the winset() which crashes it, I see that the win_id
  35. argument does indeed have the correct value.
  36.  
  37.     My interpretation is that FORMS still controls the graphics somehow
  38. and I can't use winset() for some period of time afterword.  Because my
  39. winset() call is immediately after the FORMS call which opens a new window,
  40. a complication arises.  But why not on the Indigo too?  And why do I have
  41. to have written to the window first?
  42.  
  43.     Thanks for any help or suggestions,
  44.  
  45. ----
  46. 'gards, 
  47.                                  __________
  48. Loki Jorgenson                  //    //  \\    node:  loki@Physics.McGill.CA
  49. Physicist/                     //___ //   //    BITNET: PY29@MCGILLA
  50. Visualization Analyst         //    //  _____
  51. EMINENCE GRISE               //    //    //     fax:   (514) 849-8190
  52. Montreal Quebec CANADA      //_____\\___//      phone: (514) 849-0390
  53.                                              
  54.                        -*  Visibly Advanced  *-
  55.