home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!rr2b+
- From: rr2b+@ANDREW.CMU.EDU (Robert Andrew Ryan)
- Newsgroups: comp.soft-sys.andrew
- Subject: Re: Finalize Object function
- Message-ID: <0eRTrB600VsnQYKF5J@andrew.cmu.edu>
- Date: 29 Jul 92 02:09:17 GMT
- References: <1992Jul28.160804.12@and.csc.liv.ac.uk>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 46
-
- Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
- function Mr. D.A. Chaplin@uunet.u (891)
-
- > Is the FinalizeObject function automatically called for the top level
- > object when you Quit? I would have thought this would happen but it
- > doesn't seem to. If it's not automatic, how should I call it - in the Quit
- > function?
-
- No, if your top level needs to be destroyed when you quit you should
- explicitly destroy it yourself. Note: never call FinalizeObject
- directly, but Destroy will call it. I believe you want something along
- the lines of:
-
- struct im *im=view_GetIM(topv)
- im_SetView(im, NULL);
- view_Destroy(topv);
-
- Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
- function Mr. D.A. Chaplin@uunet.u (891)
-
- > This problem may be related to a warning message I get when class
- > preprocesses every header:
-
-
- > /usr/local/andrew/bin/class -s -I../include
- > -I/usr/local/andrew/include/atk -I/usr/local/andrew/include
- > -I/usr/include/X11R4 muchview.ch
- > WARNING:muchview.ch: - FinalizeObject routine declared with no
- > InitializeObject routine
-
- I believe this should only happen if you don't declare the
- InitializeObject function in the .ch file.
-
- Excerpts from internet.other.info-andrew: 28-Jul-92 Finalize Object
- function Mr. D.A. Chaplin@uunet.u (891)
-
- > Another serious problem I've had is that the compiler doesn't
- > complain about undefined symbols, yet the program crashes when it is run.
- > Is there any fix for this?
-
- I suspect this has to do with the way the dynamic loading for HPs works,
- we don't have a fix yet. But we will probably look into this.
-
- -Rob Ryan
- Andrew Consortium
-
-