home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / softsys / andrew / 1107 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!rr2b+
  2. From: rr2b+@ANDREW.CMU.EDU (Robert Andrew Ryan)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: Re: Finalize Object function
  5. Message-ID: <0eRTrB600VsnQYKF5J@andrew.cmu.edu>
  6. Date: 29 Jul 92 02:09:17 GMT
  7. References: <1992Jul28.160804.12@and.csc.liv.ac.uk>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: world
  10. Organization: The Internet
  11. Lines: 46
  12.  
  13. Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
  14. function Mr. D.A. Chaplin@uunet.u (891)
  15.  
  16. > Is the FinalizeObject function automatically called for the top level
  17. > object when you Quit? I would have thought this would happen but it
  18. > doesn't seem to. If it's not automatic, how should I call it - in the Quit
  19. > function?
  20.  
  21. No, if your top level needs to be destroyed when you quit you should
  22. explicitly destroy it yourself.  Note: never call FinalizeObject
  23. directly, but Destroy will call it.   I believe you want something along
  24. the lines of:
  25.  
  26.     struct im *im=view_GetIM(topv)
  27.     im_SetView(im, NULL);
  28.     view_Destroy(topv);
  29.  
  30. Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
  31. function Mr. D.A. Chaplin@uunet.u (891)
  32.  
  33. > This problem may be related to a warning message I get when class
  34. > preprocesses every header:
  35.  
  36.  
  37. >         /usr/local/andrew/bin/class -s -I../include
  38. > -I/usr/local/andrew/include/atk -I/usr/local/andrew/include
  39. > -I/usr/include/X11R4 muchview.ch
  40. >  WARNING:muchview.ch: - FinalizeObject routine declared with no
  41. > InitializeObject routine
  42.  
  43. I believe this should only happen if you don't declare the
  44. InitializeObject function in the .ch file.  
  45.  
  46. Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
  47. function Mr. D.A. Chaplin@uunet.u (891)
  48.  
  49. > Another serious problem I've had is that the compiler doesn't
  50. > complain about undefined symbols, yet the program crashes when it is run.
  51. > Is there any fix for this?
  52.  
  53. I suspect this has to do with the way the dynamic loading for HPs works,
  54.   we don't have a fix yet.  But we will probably look into this.
  55.  
  56. -Rob Ryan
  57. Andrew Consortium
  58.  
  59.