Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!agate!shelby!lindy!news From: GG.DAR@forsythe.stanford.edu (Aaron Reizes) Newsgroups: comp.sys.mac.programmer Subject: Application Unexpectedly Quits Message-ID: <5174@lindy.Stanford.EDU> Date: 15 Oct 89 18:24:52 GMT Sender: news@lindy.Stanford.EDU (News Service) Lines: 19 Unexpectedly Quit Problem, I have an application (MPW C3.0) that allocates most of its structures using non-relocatable pointers (NewPtr). If the user opens lots of windows so that there is not much memory left, and then selects an option that loads a large code segment, my application unexpectedly quits. The only solution I have found is to leave enough memory for a 32kb code segment to load. I do this by checking MaxBlock each time I allocate a new pointer. Have others found this problem, and what is considered the proper procedure to prevent it, or correct it. Thanks in advance. Aaron Reizes reizes@forsythe.standford.edu