Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!mcsun!cernvax!chx400!chx400!bernina!iis!neeri From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: Correctly ending a program? Message-ID: <1991Apr29.083435.27064@bernina.ethz.ch> Date: 29 Apr 91 08:34:35 GMT References: <042891.202915BRBOYER@MTUS5.CTS.MTU.EDU> Sender: neeri@iis (Matthias Ulrich Neeracher) Reply-To: neeri@iis.ethz.ch (Matthias Ulrich Neeracher) Organization: Integrated Systems Laboratory, ETH, Zurich Lines: 22 Nntp-Posting-Host: etzj-gw In article <042891.202915BRBOYER@MTUS5.CTS.MTU.EDU>, BRBOYER@MTUS5.CTS.MTU.EDU (Rucell) writes: > When a program is "Quit" out of, what happens to all memory that the >program aloocated? Should I close all my windows? Should I dispose of all >pointers and handles, or does the memory manager close out everything for me? For applications, the memory manager handles this just fine, but usually, I clean it up myself anyway. A good toilet training can be important for other pieces of code for the Macintosh. > I have been experiencing intermittent bombing while in and out of my >program. What is recommended? I doubt this comes from not doing any cleanup work. It seems more likely to me that you didn't initialize some of the toolbox managers or made some memory overrun error in your program. Matthias -- Matthias Neeracher neeri@iis.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_